// eventHeader (1 byte): An 8-bit, unsigned integer. The format of this
// field is the same as the eventHeader byte field described in section
// 2.2.8.1.2.2. The eventCode bitfield (3 bits in size) MUST be set to
// FASTPATH_INPUT_EVENT_SCANCODE (0). The eventFlags bitfield (5 bits in
// size) contains flags describing the keyboard event.
outBuf.writeByte((scanCode >> 8) | (FASTPATH_INPUT_EVENT_SCANCODE << 5) | ((order.pressed) ? 0 : FASTPATH_INPUT_KBDFLAGS_RELEASE));
// keyCode (1 byte): An 8-bit, unsigned integer. The scancode of the key
// which triggered the event.
outBuf.writeByte(scanCode);