An error occurred
The fix assumes that if a key-event's device is not recognized and the soft-keyboard is open, it is a touch-input event.