This is how I do it
#CONSTANT up = 118
#CONSTANT down = 119
#CONSTANT True = 1
#CONSTANT False = 0
IF KEYSTATE(up) = True
I like KEYSTATE, because you can have multiple keys held down at one time and it doesn't freak like INKEY$() would.
I also assign True and False, to 1 and 0, because it's easier to remember that way and it's a neater layout when your looking through mountains of code.
Oh ya, and Up and Down may not have the right numbers assigned to them, because I can't remember what they are off hand..
I usually have another program handy for checking scancodes.. the program is as follows..
SYNC ON
HIDE MOUSE
DO
CLS
PRINT SCANCODE()
FASTSYNC
LOOP