I'm pretty sure the keys aren't a part of the actual game/download, it's a part of your Switch. So if you have an emulator with one of those keys built in, it's piracy.
I think what they should have done is prompt the user to put it in themselves and then we could just find keys on the internet and avoid this whole situation. But I'm no expert