Prevented repeating key events.