Added KeyboardEventAdapter and fixed keyboard input for Windows.
Added X11 key support to the KeyboardEventAdapter.