I did have a legit copy. i transferred it over onto a usb from my old pc and installed it and it took my key. now a few days later this has popped up
It may have taken your key but it probably didn't actually activate.
Is your Key OEM? Because if it is. Its locked to your old motherboard. I suggest contacting Microsoft to see if they can help you activate your old key.