I was surprised by the lack of information on that topic. Long story short, I have a piece of code to register key events. It works fine unless the key is pressed for a long