dispatchKeyEvent

overrides focus and custom key events