Hi MissOrlando,
We see you have a question about a recovery key, and want to get some information to see how we can help. First, we want to make sure we have a full understanding of what you're doing when you're prompted to enter a code. Are you trying to sign in on the iPod touch?
Also, which software version are you using on the iPod touch under Settings > General > About? Depending on exactly what's happening and your account setup, the software version could be a factor in how to proceed.
Also, can you let us know the exact wording of any messages you see related to recovery keys, and whether you're using two-step verification? The recovery key for two-step verification should be 14 characters as shown in this link: Two-step verification for Apple ID. On the other hand, if you use two-factor authentication, you'd use a 28-digit recovery key: How to generate a recovery key
The text below is from the resource on two-step verification, and it may help you work out more about the specific type of code you need:
Is two-step verification the same as two-factor authentication?
No. Two-factor authentication is a newer security method that's built directly into iOS, macOS, tvOS, watchOS, and Apple’s websites. It offers a more streamlined user experience and is required to use certain features that call for enhanced security. Two-factor authentication is available to iCloud users with at least one device using iOS 9 or OS X El Capitan or later.
If you have Apple devices that can be updated to iOS 9 or later or OS X El Capitan or later, you should set up two-factor authentication instead. If you use two-step verification for your Apple ID, and then you upgrade to iOS 11 or later, or macOS High Sierra or later, your security settings may be automatically upgraded to two-factor authentication.
Two-step verification is an older security method that is available to users who don’t have Apple devices, can’t update their devices, or are otherwise ineligible for two-factor authentication. You can no longer set up two-step verification for your Apple ID, but if you already use it, you can keep using it.
Let us know if that helps to get you set up. Take care.