Keyboard event dispatch.