This command will return an integer value of one if the up arrow key is being pressed, otherwise zero is returned.

Syntax: 
Return Integer=UPKEY()