Just use the KeyBinding key code instead of manually poking into LWJGL... (also fixes pick-block when it's bound to a keyboard key).