键盘扫描码(全)

Text only语言: 键盘扫描码(全) Keyboard Scan Codes (Numerical Order)

---------------+---------------+---------------+---------------+---------------
HEX DEC keys|HEX DEC keys|HEX DEC keys|HEX DEC keys|HEX DEC keys
---------------+---------------+---------------+---------------+---------------
|1016Q|2032D|3048B|4064F6
011ESC|1117W|2133F|3149N|4165F7
0221|1218E|2234G|3250M|4266F8
0332|1319R|2335H|3351,|4367F9
0443|1420T|2436J|3452.|4468F10
0554|1521Y|2537K|3553/|4569Num
0665|1622U|2638L|3654R Shift|4670Scroll
0776|1723I|2739; |3755PrtSc|4771Home
0887|1824O|2840'|3856Alt|4872Up
0998|1925P|2941`|3957Space|4973PgUp
0A109|1A26[|2A42L Shift|3A58Caps|4A74-
0B110|1B27]|2B43/|3B59F1|4B75Left
0C12-|1C28|2C44Z|3C60F2|4C76Center
0D13=|1D29CTRL|2D45X|3D61F3|4D77Right
0E14bs|1E30A|2E46C|3E62F4|4E78+
0F15Tab|1F31S|2F47V|3F63F5|4F79End
---------------+---------------+---------------+---------------+---------------
5080Down||||
5181PgDn||||
5282Ins||||
5383Del||||
---------------+---------------+---------------+---------------+---------------



Keyboard Scan Codes (Read from Port HEX 60 = DEC 96) (Keyboard Layout)

Top number... DEC
Bottom number ... HEX

+--+--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-------+-------+
|F1|F2|ESC| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = |BkS|Num Lok|Scr Lok|
|||||||||||||||||||
|59|60| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |10 |11 |12 |13 |14 |69|70|
|3B|3C|01 |02 |03 |04 |05 |06 |07 |08 |09 |0A |0B |0C |0D |0E |45|46|
+--+--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-------+-------+
|F3|F4|TAB| Q | W | E | R | T | Y | U | I | O | P | [ | ] || 7 3 8 | 9 3 - |
|||||||||||||||||3|3|
|61|62|15 |16 |17 |18 |19 |20 |21 |22 |23 |24 |25 |26 |27 ||71 372 |73 374 |
|3D|3E|0F |10 |11 |12 |13 |14 |15 |16 |17 |18 |19 |1A |1B ||47 348 |49 34A |
+--+--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-------+-------+
|F5|F6|CTR| A | S | D | F | G | H | J | K | L | ; | ' | ` |28 | 4 3 5 | 6 3|
|||||||||||||||||3|3|
|63|64|29 |30 |31 |32 |33 |34 |35 |36 |37 |38 |39 |40 |41 ||75 376 |77 3|
|3F|40|1D |1E |1F |20 |21 |22 |23 |24 |25 |26 |27 |28 |29 ||4B 34C |4D 3|
+--+--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-------+-------+
|F7|F8|Shf| / | Z | X | C | V | B | N | M | , | . | / |Shf|Prt| 1 3 2 | 3 3 + |
|||||||||||||||||3|3|
|65|66|42 |43 |44 |45 |46 |47 |48 |49 |50 |51 |52 |53 |54 |55 |78 380 |81 378 |
|41|42|2A |2B |2C |2D |2E |2F |30 |31 |32 |33 |34 |35 |36 |37 |4F 350 |51 34E |
+--+--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-------+-------+
|F9|F0|A|t|||||pac|||||Cap|Lok|I|s3D|l3|
|||||||||||||||||3|3|
|67|68|5||||||57 |||||5||8|38|3|
|43|44|3||||||39 |||||3||5|35|3|
+--+--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-------+-------+



Extended ASCII Special Key Codes (Numerical Order)
... composed of 2 bytes, the 2nd byte being 00 (00 signifies that the special codes are to be applied.)

HEX DECkeys
-------------------------------
033CTRL-2; same as CHR$(0)
0F15Shift-tab
1016Alt-Q
1117Alt-W
1218Alt-E
1319Alt-R
1420Alt-T
1521Alt-Y
1622Alt-U
1723Alt-I
1824Alt-O
1925Alt-P
1E30Alt-A
1F31Alt-S
2032Alt-D
2133Alt-F
2234Alt-G
2335Alt-H
2436Alt-J
2537Alt-K
2638Alt-L
2C44Alt-Z
2D45Alt-X
2E46Alt-C
2F47Alt-V
3048Alt-B
3149Alt-N
3250Alt-M
3B59F1
3C60F2
3D61F3
3E62F4
3F63F5
4064F6
4165F7
4266F8
4367F9
4468F10
4771Home
4872Up
4973PgUp
4B75Left
4D77Right
4F79End
5080Down
5181PgDn
5282Ins
5383Del
5484Shift-F1
5585Shift-F2
5686Shift-F3
5787Shift-F4
5888Shift-F5
5989Shift-F6
5A90Shift-F7
5B91Shift-F8
5C92Shift-F9
5D93Shift-F10
5E94Ctrl-F1
5F95Ctrl-F2
6096Ctrl-F3
6197Ctrl-F4
6298Ctrl-F5
6399Ctrl-F6
64 100Ctrl-F7
65 101Ctrl-F8
66 102Ctrl-F9
67 103Ctrl-F10
68 104Alt-F1
69 105Alt-F2
6A 106Alt-F3
6B 107Alt-F4
6C 108Alt-F5
6D 109Alt-F6
6E 110Alt-F7
6F 111Alt-F8
70 112Alt-F9
71 113Alt-F10
72 114Ctrl-PrtSc
73 115Ctrl-Left
74 116Ctrl-Right
75 117Ctrl-End
76 118Ctrl-PgDn
77 119Ctrl-Home
78 120Alt-1
79 121Alt-2
7A 122Alt-3
7B 123Alt-4
7C 124Alt-5
7D 125Alt-6
7E 126Alt-7
7F 127Alt-8
80 128Alt-9
81 129Alt-0
82 130Alt--
83 131Alt-=
84 132Ctrl-PgUp
85 133Ctrl-Up
86 134Ctrl--(num)
87 135Ctrl-Center
88 136Ctrl-+(num)
89 137Ctrl-Down
8A 138Ctrl-Ins
8B 139Ctrl-Del
8C 140Alt-Home
8D 141Alt-Up
8E 142Alt-PgUp
8F 143Alt--(num)
90 144Alt-Left
91 145Alt-Center
92 146Alt-Right
93 147Alt-+(num)
94 148Alt-End
95 149Alt-Down
96 150Alt-PgDn
97 151Alt-Ins
98 152Alt-Del



Extended ASCII Special Key Codes (Keyboard Layout)

------------------+-------------------+-------------------+--------------------
HEX DEC keys| HEX DEC keys| HEX DEC keys| HEX DEC keys
------------------+-------------------+-------------------+--------------------
033nul| 0F15Shift-tab | 72 114Ctrl-PrtSc|
------------------+-------------------+-------------------+--------------------
4771Home|| 77 119Ctrl-Home | 8C 140Alt-Home
4872Up|| 85 133Ctrl-Up| 8D 141Alt-Up
4973PgUp|| 84 132Ctrl-PgUp | 8E 142Alt-PgUp
4A74-(num)|| 86 134Ctrl--(nu)| 8F 143Alt--(num)
4B75Left|| 73 115Ctrl-Left | 90 144Alt-Left
4C76Center|| 87 135Ctrl-Centr| 91 145Alt-Center
4D77Right|| 74 116Ctrl-Right| 92 146Alt-Right
4E78+(num)|| 88 136Ctrl-+(nu)| 93 147Alt-+(num)
4F79End|| 75 117Ctrl-End| 94 148Alt-End
5080Down|| 89 137Ctrl-Down | 95 149Alt-Down
5181PgDn|| 76 118Ctrl-PgDn | 96 150Alt-PgDn
5282Ins|| 8A 138Ctrl-Ins| 97 151Alt-Ins
5383Del|| 8B 139Ctrl-Del| 98 152Alt-Del
------------------+-------------------+-------------------+--------------------
3B59F1| 5484Shift-F1| 5E94Ctrl-F1| 68 104Alt-F1
3C60F2| 5585Shift-F2| 5F95Ctrl-F2| 69 105Alt-F2
3D61F3| 5686Shift-F3| 6096Ctrl-F3| 6A 106Alt-F3
3E62F4| 5787Shift-F4| 6197Ctrl-F4| 6B 107Alt-F4
3F63F5| 5888Shift-F5| 6298Ctrl-F5| 6C 108Alt-F5
4064F6| 5989Shift-F6| 6399Ctrl-F6| 6D 109Alt-F6
4165F7| 5A90Shift-F7| 64 100Ctrl-F7| 6E 110Alt-F7
4266F8| 5B91Shift-F8| 65 101Ctrl-F8| 6F 111Alt-F8
4367F9| 5C92Shift-F9| 66 102Ctrl-F9| 70 112Alt-F9
4468F10| 5D93Shift-F10 | 67 103Ctrl-F10| 71 113Alt-F10
------------------+-------------------+-------------------+--------------------
1E30Alt-A| 3149Alt-N| 78 120Alt-1|
3048Alt-B| 1824Alt-O| 79 121Alt-2|
2E46Alt-C| 1925Alt-P| 7A 122Alt-3|
2032Alt-D| 1016Alt-Q| 7B 123Alt-4|
1218Alt-E| 1319Alt-R| 7C 124Alt-5|
2133Alt-F| 1F31Alt-S| 7D 125Alt-6|
2234Alt-G| 1420Alt-T| 7E 126Alt-7|
2335Alt-H| 1622Alt-U| 7F 127Alt-8|
1723Alt-I| 2F47Alt-V| 80 128Alt-9|
2436Alt-J| 1117Alt-W| 81 129Alt-0|
2537Alt-K| 2D45Alt-X| 82 130Alt--|
2638Alt-L| 1521Alt-Y| 83 131Alt-=|
3250Alt-M| 2C44Alt-Z||
------------------+-------------------+-------------------+--------------------

    推荐阅读