Although I'm sure it's already been done a million times, I've attached a program that displays the scancode of the last key pressed. It runs in a little window so that it can be used at the same time as other programs (e.g. referencing scancodes for developing in DarkBASIC). I did this because I couldn't find a suitable table of scancodes for all of the standard keys, and I thought maybe others had the same issue. Anyway, here it is.
***EDIT***
The forum doesn't like me for some reason and I can't upload the file, so here is the source that you can compile for yourselves
Rem Project: Scancode
Rem Created: 12/5/2004 8:59:11 PM
Rem ***** Main Source File *****
sync on : sync rate 60
set text size 50
SET WINDOW LAYOUT 1,0,1
currentkey = 0
do
suspend for key
cls
currentkey = scancode()
text 10,10, str$(currentkey)
sync
loop
I hope you find this useful
^_^
ooo isn't that precious