This is a really weird issue, but I just have a simple keyListener added to a JPanel that prints on keyPressed and on keyReleased. Usually it works fine, but on certain keys
I fixed it by going into my system preferences -> keyboard and moving the key repeat slider all the way to the left to "Off".