Quote: "Are DarkBASIC Pro keyboard scancodes the same as DirectInput and WINAPI scancodes?"
They are DirectInput scancodes.
#constant DIK_0 11
#constant DIK_1 2
#constant DIK_2 3
#constant DIK_3 4
#constant DIK_4 5
#constant DIK_5 6
#constant DIK_6 7
#constant DIK_7 8
#constant DIK_8 9
#constant DIK_9 10
#constant DIK_A 30
#constant DIK_ABNT_C1 115
#constant DIK_ABNT_C2 126
#constant DIK_ADD 78
#constant DIK_APOSTROPHE 40
#constant DIK_APPS 221
#constant DIK_AT 145
#constant DIK_AX 150
#constant DIK_B 48
#constant DIK_BACK 14
#constant DIK_BACKSLASH 43
#constant DIK_BACKSPACE 14
#constant DIK_C 46
#constant DIK_CALCULATOR 161
#constant DIK_CAPITAL 58
#constant DIK_CAPSLOCK 58
#constant DIK_CIRCUMFLEX 144
#constant DIK_COLON 146
#constant DIK_COMMA 51
#constant DIK_CONVERT 121
#constant DIK_D 32
#constant DIK_DECIMAL 83
#constant DIK_DELETE 211
#constant DIK_DIVIDE 181
#constant DIK_DOWN 208
#constant DIK_DOWNARROW 208
#constant DIK_E 18
#constant DIK_END 207
#constant DIK_EQUALS 13
#constant DIK_ESCAPE 1
#constant DIK_F 33
#constant DIK_F1 59
#constant DIK_F2 60
#constant DIK_F3 61
#constant DIK_F4 62
#constant DIK_F5 63
#constant DIK_F6 64
#constant DIK_F7 65
#constant DIK_F8 66
#constant DIK_F9 67
#constant DIK_F10 68
#constant DIK_F11 87
#constant DIK_F12 88
#constant DIK_F13 100
#constant DIK_F14 101
#constant DIK_F15 102
#constant DIK_G 34
#constant DIK_GRAVE 41
#constant DIK_H 35
#constant DIK_HOME 199
#constant DIK_I 23
#constant DIK_INSERT 210
#constant DIK_J 36
#constant DIK_K 37
#constant DIK_KANA 112
#constant DIK_KANJI 148
#constant DIK_L 38
#constant DIK_LALT 56
#constant DIK_LBRACKET 26
#constant DIK_LCONTROL 29
#constant DIK_LEFT 203
#constant DIK_LEFTARROW 203
#constant DIK_LMENU 56
#constant DIK_LSHIFT 42
#constant DIK_LWIN 219
#constant DIK_M 50
#constant DIK_MAIL 236
#constant DIK_MEDIASELECT 237
#constant DIK_MEDIASTOP 164
#constant DIK_MINUS 12
#constant DIK_MULTIPLY 55
#constant DIK_MUTE 160
#constant DIK_MYCOMPUTER 235
#constant DIK_N 49
#constant DIK_NEXT 209
#constant DIK_NEXTTRACK 153
#constant DIK_NOCONVERT 123
#constant DIK_NUMLOCK 69
#constant DIK_NUMPAD0 82
#constant DIK_NUMPAD1 79
#constant DIK_NUMPAD2 80
#constant DIK_NUMPAD3 81
#constant DIK_NUMPAD4 75
#constant DIK_NUMPAD5 76
#constant DIK_NUMPAD6 77
#constant DIK_NUMPAD7 71
#constant DIK_NUMPAD8 72
#constant DIK_NUMPAD9 73
#constant DIK_NUMPADCOMMA 179
#constant DIK_NUMPADENTER 156
#constant DIK_NUMPADEQUALS 141
#constant DIK_NUMPADMINUS 74
#constant DIK_NUMPADPERIOD 83
#constant DIK_NUMPADPLUS 78
#constant DIK_NUMPADSLASH 181
#constant DIK_NUMPADSTAR 55
#constant DIK_O 24
#constant DIK_OEM_102 86
#constant DIK_P 25
#constant DIK_PAUSE 197
#constant DIK_PERIOD 52
#constant DIK_PGDN 209
#constant DIK_PGUP 201
#constant DIK_PLAYPAUSE 162
#constant DIK_POWER 222
#constant DIK_PREVTRACK 144
#constant DIK_PRIOR 201
#constant DIK_Q 16
#constant DIK_R 19
#constant DIK_RALT 184
#constant DIK_RBRACKET 27
#constant DIK_RCONTROL 157
#constant DIK_RETURN 28
#constant DIK_RIGHT 205
#constant DIK_RIGHTARROW 205
#constant DIK_RMENU 184
#constant DIK_RSHIFT 54
#constant DIK_RWIN 220
#constant DIK_S 31
#constant DIK_SCROLL 70
#constant DIK_SEMICOLON 39
#constant DIK_SLASH 53
#constant DIK_SLEEP 223
#constant DIK_SPACE 57
#constant DIK_STOP 149
#constant DIK_SUBTRACT 74
#constant DIK_SYSRQ 183
#constant DIK_T 20
#constant DIK_TAB 15
#constant DIK_U 22
#constant DIK_UNDERLINE 147
#constant DIK_UNLABELED 151
#constant DIK_UP 200
#constant DIK_UPARROW 200
#constant DIK_V 47
#constant DIK_VOLUMEDOWN 174
#constant DIK_VOLUMEUP 176
#constant DIK_W 17
#constant DIK_WAKE 227
#constant DIK_WEBBACK 234
#constant DIK_WEBFAVORITES 230
#constant DIK_WEBFORWARD 233
#constant DIK_WEBHOME 178
#constant DIK_WEBREFRESH 231
#constant DIK_WEBSEARCH 229
#constant DIK_WEBSTOP 232
#constant DIK_X 45
#constant DIK_Y 21
#constant DIK_YEN 125
#constant DIK_Z 44