Stick to authorised digital retailers and the publisher's own storefront for CD keys. They sell legitimate keys, they will replace one that fails to activate, and you avoid the risk of buying a key that has already been used or revoked in a region you cannot play in.
Before ordering, check that the key is valid for your region and that the title is not tied to a specific platform account.