When a key is pressed, clear it for a while (1/(20 Hz) in this case).
This way, programs that continuously poll the keyboard will not see
millions of keypresses.