If the key you bought doesn’t work for whatever reason, no worries. Just contact the seller you bought it from, describe the issues you’re having, and await their reply once that’s done.
You should either get a replacement key or a refund within a couple of business days. Sellers are usually more than happy to help the buyers out when problems arise, so don’t hesitate to contact them if you have any questions.