Security Key not working

I have had Metamask for a short while now, and I am trying to link my hardware wallet. On Windows OS, it consistently askes me for my security key but also says it doesn’t recognize it. I have 2FA turned on for Github. What am I doing wrong?