Appendix A: PS/2 Keyboard Wedge A-5
US PS/2 Keyboard Scan
Codes
International Scan Codes
Num Lock
Option On
ASCII
Characters
ASCII
Shifted
Characters
System Scan
Codes
3B j J 24
42 k K 25
4B l L 26
3A m M 32
31 n N 31
44 o O 18
4D p P 19
15 q Q 10
2D r R 13
1B s S 1F
2C t T 14
3C u U 16
2A v V 2F
1D w W 11
22 x X 2D
35 y Y 15
1A z Z 2C
Start/Stop Sentinel Table
The table below can be used to construct the start and stop sentinels. In most cases, the make
and break codes will be used to represent a PS/2 keyboard keystroke. For example, the letter
“m” would be represented by the sequence 3A, F0, 3A.
The default Start Sentinel is to send nothing, so the first bytes of the message are the tag data.
The default Stop Sentinel is 5A, F0, 5A (Enter Key).
Key
Make
Code Break Code Key
Make
Code
Break
Code Key
Make
Code
Break
Code
Space 29 F0, 29 m 3A F0, 3A F7 83 F0, 83
' 52 F0, 52 n 31 F0, 31 F8 0A F0, 0A
, 41 F0, 41 o 44 F0, 44 F9 01 F0, 01
- 4E F0, 4E p 4D F0, 4D F10 09 F0, 09
. 49 F0, 49 q 15 F0, 15 F11 78 F0, 78
/ 4A F0, 4A r 2D F0, 2D F12 07 F0, 07
0 45 F0, 45 s 1B F0, 1B Scroll 7E F0, 7E