4D returns values for Function keys in the KeyCode system variable, which is used within project methods installed by the ON EVENT CALL command. These project methods are used to catch events.
The values for Function keys are not based on ASCII Codes. They are:
The KeyCode system variable is to be used in a project method installed using ON EVENT CALL.
In addition to the function keys, the following table lists the values returned in KeyCode when you press one of the common keys, such as Return or Enter.
ON EVENT CALL, System Variables.