key codes for input
better X11 input handling, but still dirty