Keyboard scancodes
Use the following values as parameters passed to the KEY function to detect if a key is pressed on the keyboard.
Key | VIC-20 | C-64 / C-128 | C-16 / Plus/4 |
---|---|---|---|
* | 64832 | 48898 | 48898 |
+ | 65056 | 57089 | 48960 |
, | 32544 | 57216 | 57216 |
- | 48928 | 57152 | |
. | 61216 | 57104 | 57104 |
/ | 63296 | 49024 | 49024 |
: | 57120 | 57120 | 57120 |
; | 64320 | 48900 | 48900 |
= | 57152 | 48928 | 48928 |
@ | 57152 | ||
A | 64258 | 64772 | 64772 |
B | 61192 | 63248 | 63248 |
C | 61188 | 64272 | 64272 |
CBM | 57089 | 32544 | 32544 |
CRSR DN | 63360 | 65152 | 57089 |
CRSR LT | 48897 | ||
CRSR RT | 64384 | 65028 | 48904 |
CRSR UP | 57096 | ||
CTRL | 64257 | 32516 | 32516 |
D | 64260 | 64260 | 64260 |
DEL | 65152 | 65025 | 65025 |
E | 48898 | 64832 | 64832 |
ESC | 48912 | ||
F | 57092 | 64288 | 64288 |
F1/F2 | 57216 | 65040 | |
F1/F4 | 65040 | ||
F2/F5 | 65056 | ||
F3/6 | 65088 | ||
F3/F4 | 49024 | 65056 | |
F5/F6 | 32640 | 65088 | |
F7/F8 | 61312 | 65032 | |
0 | 32528 | 61192 | 61192 |
G | 64264 | 63236 | 63236 |
H | 57096 | 63264 | 63264 |
HELP/F7 | 65032 | ||
HOME | 32576 | 48904 | 32514 |
I | 64784 | 61186 | 61186 |
J | 64272 | 61188 | 61188 |
K | 57104 | 61216 | 61216 |
L | 64288 | 57092 | 57092 |
LSHIFT | 63234 | 64896 | |
M | 61200 | 61200 | 61200 |
N | 63248 | 61312 | 61312 |
O | 48912 | 61248 | 61248 |
P | 64800 | 57090 | 57090 |
Q | 48897 | 32576 | 32576 |
R | 64772 | 64258 | 64258 |
RETURN | 64896 | 65026 | 65026 |
RSHIFT | 61248 | 48912 | |
S | 57090 | 64800 | 64800 |
SHIFT | 64896 | ||
SPACE | 61185 | 32528 | 32528 |
STOP | 32513 | 32640 | 32640 |
T | 48900 | 64320 | 64320 |
U | 48904 | 63296 | 63296 |
V | 63240 | 63360 | 63360 |
W | 64770 | 64770 | 64770 |
X | 63236 | 64384 | 64384 |
Y | 64776 | 63234 | 63234 |
Z | 61186 | 64784 | 64784 |
£ | 65088 | 48897 | 65028 |
← | 64769 | 32514 | |
↑ | 48960 | 48960 | |
1 | 65025 | 32513 | 32513 |
2 | 63233 | 32520 | 32520 |
3 | 65026 | 64769 | 64769 |
4 | 32514 | 64776 | 64776 |
5 | 65028 | 64257 | 64257 |
6 | 32516 | 64264 | 64264 |
7 | 65032 | 63233 | 63233 |
8 | 32520 | 63240 | 63240 |
9 | 65040 | 61185 | 61185 |