This command will return an integer value of one if the escape key is being pressed, otherwise zero is returned.
Return Integer=ESCAPEKEY()
A one if the escape key is being pressed, otherwise zero is returned
cls do if escapekey()=1 print "key= "+str$(escapekey()) endif loop end
INPUT Commands Menu Index