an example can be found on AMOSPro_Examples:Examples/H-5/Help_54.AMOS
Returns an internal code for use with the keyboard macros defined with KEY$.
Generates the code for scancode n.
m enters an optional mask for the special keys such as ALT or SHIFT. See SHIFT KEY for more details.