This is actually included with the help, but easy to miss for newcomers. It basically gives you the key thats being pressed so you can use the code for user interaction. Some new coders get ASCII codes confused with scan codes, this will make sure you get it right. Again, this isn't my code, its included with DBP(and also applies to the GDK)...but it might help out a few new guys who don't notice it. I personally keep a compiled EXE of it on my desktop for easy reference.
cls
do
if scancode()>0
print "key= "+str$(scancode())
endif
loop
end