LASTKEY( ) Function
Returns an integer corresponding to the last key pressed.
LASTKEY( )
Return Values
Numeric
Remarks
The values returned by LASTKEY( ) are the same as the values returned by INKEY( ). See INKEY( ) for a list of keys and their return values.
LASTKEY( ) is updated when you move between controls.