Keyboard Scan Codes

Content by Peter H. Wendt (original HERE).


101-keys Keyboard (US/UK-style)


+--+    +--++--++--++--+  +--++--++--++--+  +--++--++--++--+  +--++--++--+
|01|    |3B||3C||3D||3E|  |3F||40||41||42|  |43||44||45||45|  |E0||46||E1|
+--+    +--++--++--++--+  +--++--++--++--+  +--++--++--++--+  +--++--++--+

+--++--++--++--++--++--++--++--++--++--++--++--++--++------+  +--++--++--+  +--++--++--++--+
|29||02||03||04||05||06||07||08||09||0A||0B||0C||0D||  0E  |  |E0||E0||E0|  |45||E0||37||4A|
+--++--++--++--++--++--++--++--++--++--++--++--++--++------+  +--++--++--+  +--++--++--++--+
+---++--++--++--++--++--++--++--++--++--++--++--++--++-----+  +--++--++--+  +--++--++--++--+
| 0F||10||11||12||13||14||15||16||17||18||19||1A||1B||  2B |  |E0||E0||E0|  |47||48||49||  |
+---++--++--++--++--++--++--++--++--++--++--++--++--++-----+  +--++--++--+  +--++--++--+|  |
+----++--++--++--++--++--++--++--++--++--++--++--++--------+                +--++--++--+|4E|
| 3A ||1E||1F||20||21||22||23||24||25||26||27||28||   1C   |                |4B||4C||4D||  |
+----++--++--++--++--++--++--++--++--++--++--++--++--------+                +--++--++--++--+
+------++--++--++--++--++--++--++--++--++--++--++----------+      +--+      +--++--++--++--+
|  2A  ||2C||2D||2E||2F||30||31||32||33||34||35||    36    |      |E0|      |4F||50||51||  |
+------++--++--++--++--++--++--++--++--++--++--++----------+      +--+      +--++--++--+|  |
+---+    +---++------------------------------++---+    +---+  +--++--++--+  +------++--+|E0|
| 1D|    | 38||               39             || E0|    | E0|  |E0||E0||E0|  |  52  ||53||  |
+---+    +---++------------------------------++---+    +---+  +--++--++--+  +------++--++--+


     All Keys with 'E0' and 'E1' are keys which send a 2-byte code to the system

102-keys Keyboard (GR-style)


+--+    +--++--++--++--+  +--++--++--++--+  +--++--++--++--+  +--++--++--+
|01|    |3B||3C||3D||3E|  |3F||40||41||42|  |43||44||45||45|  |E0||46||E1|
+--+    +--++--++--++--+  +--++--++--++--+  +--++--++--++--+  +--++--++--+

+--++--++--++--++--++--++--++--++--++--++--++--++--++------+  +--++--++--+  +--++--++--++--+
|29||02||03||04||05||06||07||08||09||0A||0B||0C||0D||  0E  |  |E0||E0||E0|  |45||E0||37||4A|
+--++--++--++--++--++--++--++--++--++--++--++--++--++------+  +--++--++--+  +--++--++--++--+
+---++--++--++--++--++--++--++--++--++--++--++--++--++-----+  +--++--++--+  +--++--++--++--+
| 0F||10||11||12||13||14||15||16||17||18||19||1A||1B||     |  |E0||E0||E0|  |47||48||49||  |
+---++--++--++--++--++--++--++--++--++--++--++--++--++-+   |  +--++--++--+  +--++--++--+|  |
+----++--++--++--++--++--++--++--++--++--++--++--++--+ |1C |                +--++--++--+|4E|
| 3A ||1E||1F||20||21||22||23||24||25||26||27||28||2B| |   |                |4B||4C||4D||  |
+----++--++--++--++--++--++--++--++--++--++--++--++--+ +---+                +--++--++--++--+
+---+--++--++--++--++--++--++--++--++--++--++--++----------+      +--+      +--++--++--++--+
| 2A|56||2C||2D||2E||2F||30||31||32||33||34||35||    36    |      |E0|      |4F||50||51||  |
+---+--++--++--++--++--++--++--++--++--++--++--++----------+      +--+      +--++--++--+|  |
+---+    +---++------------------------------++---+    +---+  +--++--++--+  +------++--+|E0|
| 1D|    | 38||               39             || E0|    | E0|  |E0||E0||E0|  |  52  ||53||  |
+---+    +---++------------------------------++---+    +---+  +--++--++--+  +------++--++--+


     All Keys with 'E0' and 'E1' are keys which send a 2-byte code to the system

Content created and/or provided by:
Louis F. Ohland, Peter H. Wendt, David L. Beem, William R. Walsh, Tatsuo Sunagawa, Tomáš Slavotínek, Jim Shorney, Tim N. Clarke, Kevin Bowling, and many others.

Ardent Tool of Capitalism - MAD Edition! is maintained by Tomáš Slavotínek.
Last update: 05 Dec 2023 - Changelog | Legal Info & Contact