Keyboard event handler is working