AMOSi:Key State
an example can be found on AMOSPro_Examples:Examples/H-4/Help_43.AMOS
Tests a specific key to see if it has been pressed by the user. A value of -1 indicates that the key has been hit.
Test=Keystate(scancode)
If Key State(69) Then Print "Escape pressed"