Key Codes:
All letter keys correspond to the ASCII code for the capital
form of the letter.
All number keys on the top row correspond to their ASCII
code.
Modifier keys (Shift, Alt, Ctrl) do not change the key code
returned.
Backspace = $8
keypad 5 = $C
Enter or keypad Enter = $D
Shift = $10
Control = $11
Alt = $12
Pause = $13
Caps Lock = $14
Esc = $1B
Space = $20
Page Up or keypad 9 = $21
Page Down or keypad 3 = $22
End or keypad 1 = $23
Home or keypad 7 = $24
Left Arrow or keypad 4 = $25
Up Arrow or keypad 8 = $26
Right Arrow or keypad 6 = $27
Down Arrow or keypad 2 = $28
Insert or keypad 0 = $2D
Delete or keypad . = $2E
keypad * = $6A
keypad + = $6B
keypad - = $6D
keypad / = $6F
F1 = $70 used by Sim68K 1
F2 = $71
F3 = $72
F4 = $73
F5 = $74
F6 = $75 used by Sim68K 1
F7 = $76 used by Sim68K 1
F8 = $77 used by Sim68K 1
F9 = $78 used by Sim68K 1
F10 = $79 used by Sim68K 1
F11 = $7A
F12 = $7B
Num Lock = $90
Scroll Lock = $91
; = $BA
'=' = $BB
, = $BC
- = $BD
. = $BE
/ = $BF
` = $C0
[ = $DB
\ = $DC
] = $DD
' = $DE
1 - use trap task #24 to disable simulator shortcut keys