Proper endianness for KeyEvent