The more important question is does it register key release events
But you had me going for a second. Nethack is also turn-based, so there's no real-time element at all. If you come across a difficult turn, its a common "strategy" to walk away from the computer, relax a bit, and then look at the screen with a different mindset. Maybe you can think of a better solution if you give yourself time.