To check the state (pressed or released) of a certain key with the DQBkey
function, you must pass its keyboard scancode as parameter. For the most used
keys there're some constants that help you, so check out appendix A.
For the other keys, here's the complete list of scancodes for all them (please
note that a single scancode can represent more than a single key):
Scancode Key Scancode Key
-----------------------------------------------------------------------------
1 ESC 44 Z
2 1 45 X
3 2 46 C
4 3 47 V
5 4 48 B
6 5 49 N
7 6 50 M
8 7 51 , or <
9 8 52 . or >
10 9 53 / or ?
11 0 54 RIGHT SHIFT
12 - or _ 55 * or PRINT SCREEN
13 = or + 56 ALT (RIGHT and LEFT)
14 BACKSPACE 57 SPACE
15 TAB 58 CAPSLOCK
16 Q 59 F1
17 W 60 F2
18 E 61 F3
19 R 62 F4
20 T 63 F5
21 Y 64 F6
22 U 65 F7
23 I 66 F8
24 O 67 F9
25 P 68 F10
26 [ or { 69 NUMLOCK
27 ] or } 70 SCROLL LOCK
28 ENTER 71 7 or HOME
29 CONTROL (RIGHT and LEFT) 72 8 or UP
30 A 73 9 or PAGE UP
31 S 74 -
32 D 75 4 or LEFT
33 F 76 5
34 G 77 6 or RIGHT
35 H 78 +
36 J 79 1 or END
37 K 80 2 or DOWN
38 L 81 3 or PAGE DOWN
39 ; or : 82 0 or INSERT
40 ' or " 83 . or DEL
41 \ or ~ 87 F11
42 LEFT SHIFT 88 F12