Ignore repeated keystrokes, except for text input events