Do you have the help files? Look at the input section.
For almost any practical use you would not use scancode(), because it only returns the value of one key being pressed, so if more than one key is pressed they wont both be counted. Keystate() works for each key independently.
There are also some stock commands for regularly used keys:
rightkey()
leftkey()
upkey()
downkey()
controlkey()
shiftkey()
returnkey()
spacekey()
escapekey()
I've attached an image mapping the scancodes of each key on a keyboard. (May be slightly different to your keyboard.)
Formerly OBese87.