The new LWJGL removes the need to hack the keyboard.