Fixes repeated Keyboard events