Returns 1 if the key belonging to the code code# is pressed. Otherwise 0. To get the key-code of a certain key, use the program ‘Keycode.exe’ in the Tools folder.
Sample:
// End with ESC WHILE 1=1 // Endless-Loop IF KEY(57) = 1; PRINT “Space Bar is Pressed”, 100, 100; ENDIF SHOWSCREEN WEND