The parameter corresponds exactly to a PS2 packet as gathered by ApplePS2Keyboard::interruptOccurred. The high-byte is either 1 or 2 (1 is normal scan code, 2 is extended 'e0' scan code). The low-bye is the scan code. You must send both down and up. These correspond to sending down & up for e006 and e005.