Anexo:Scan code
Apariencia
Son los códigos que envía el teclado al ordenador para indicar la tecla pulsada o soltada. Su valor no depende de la tecla, sino de su posición, así se consigue que sea independiente del idioma del teclado.
Para el teclado QWERTY americano (104 teclas) con conexión PS/2, los scan codes son:
Tecla | Pulsar | Soltar | ASCII |
---|---|---|---|
A | 1C | F0,1C | 41 |
B | 32 | F0,32 | 42 |
C | 21 | F0,21 | 43 |
D | 23 | F0,23 | 44 |
E | 24 | F0,24 | 45 |
F | 2B | F0,2B | 46 |
G | 34 | F0,34 | 47 |
H | 33 | F0,33 | 48 |
I | 43 | F0,43 | 49 |
J | 3B | F0,3B | 4A |
K | 42 | F0,42 | 4B |
L | 4B | F0,4B | 4C |
M | 3A | F0,3A | 4D |
N | 31 | F0,31 | 4E |
O | 44 | F0,44 | 4F |
P | 4D | F0,4D | 50 |
Q | 15 | F0,15 | 51 |
R | 2D | F0,2D | 52 |
S | 1B | F0,1B | 53 |
T | 2C | F0,2C | 54 |
U | 3C | F0,3C | 55 |
V | 2A | F0,2A | 56 |
W | 1D | F0,1D | 57 |
X | 22 | F0,22 | 58 |
Y | 35 | F0,35 | 59 |
Z | 1A | F0,1A | 5A |
0 | 45 | F0,45 | 30 |
1 | 16 | F0,16 | 31 |
2 | 1E | F0,1E | 32 |
3 | 26 | F0,26 | 33 |
4 | 25 | F0,25 | 34 |
5 | 2E | F0,2E | 35 |
6 | 36 | F0,36 | 36 |
7 | 3D | F0,3D | 37 |
8 | 3E | F0,3E | 38 |
9 | 46 | F0,46 | 39 |
` | 0E | F0,0E | 60 |
- | 4E | F0,4E | 2D |
= | 55 | F0,55 | 3D |
\ | 5D | F0,5D | 5C |
BKSP | 66 | F0,66 | |
SPACE | 29 | F0,29 | 20 |
TAB | 0D | F0,0D | |
CAPS | 58 | F0,58 | |
L SHFT | 12 | F0,12 | |
L CTRL | 14 | F0,14 | |
L GUI | E0,1F | E0,F0,1F | |
L ALT | 11 | F0,11 | |
R SHFT | 59 | F0,59 | |
R CTRL | E0,14 | E0,F0,14 | |
R GUI | E0,27 | E0,F0,27 | |
R ALT | E0,11 | E0,F0,11 | |
APPS | E0,2F | E0,F0,2F | |
ENTER | 5A | F0,5A | |
ESC | 76 | F0,76 | |
F1 | 05 | F0,05 | |
F2 | 06 | F0,06 | |
F3 | 04 | F0,04 | |
F4 | 0C | F0,0C | |
F5 | 03 | F0,03 | |
F6 | 0B | F0,0B | |
F7 | 83 | F0,83 | |
F8 | 0A | F0,0A | |
F9 | 01 | F0,01 | |
F10 | 09 | F0,09 | |
F11 | 78 | F0,78 | |
F12 | 07 | F0,07 | |
PRNT SCRN | E0,12,E0,7C | E0,F0,7C,E0,F0,12 | |
SCROLL | 7E | F0,7E | |
PAUSE | E1,14,77,E1,F0,14,F0,77 | - | |
[ | 54 | F0,54 | |
INSERT | E0,70 | E0,F0,70 | |
HOME | E0,6C | E0,F0,6C | |
PG UP | E0,7D | E0,F0,7D | |
DELETE | E0,71 | E0,F0,71 | |
END | E0,69 | E0,F0,69 | |
PG DN | E0,7A | E0,F0,7A | |
U ARROW | E0,75 | E0,F0,75 | |
L ARROW | E0,6B | E0,F0,6B | |
D ARROW | E0,72 | E0,F0,72 | |
R ARROW | E0,74 | E0,F0,74 | |
NUM | 77 | F0,77 | |
KP / | E0,4A | E0,F0,4A | |
KP * | 7C | F0,7C | |
KP - | 7B | F0,7B | |
KP + | 79 | F0,79 | |
KP EN | E0,5A | E0,F0,5A | |
KP . | 71 | F0,71 | |
KP 0 | 70 | F0,70 | |
KP 1 | 69 | F0,69 | |
KP 2 | 72 | F0,72 | |
KP 3 | 7A | F0,7A | |
KP 4 | 6B | F0,6B | |
KP 5 | 73 | F0,73 | |
KP 6 | 74 | F0,74 | |
KP 7 | 6C | F0,6C | |
KP 8 | 75 | F0,75 | |
KP 9 | 7D | F0,7D | |
] | 5B | F0,5B | |
; | 4C | F0,4C | |
' | 52 | F0,52 | |
, | 41 | F0,41 | |
. | 49 | F0,49 | |
/ | 4A | F0,4A |