an example can be found on AMOSPro_Examples:Examples/H-5/Help_54.AMOS
Assigns or reads a keyboard macro. These macros can be accessed from the keyboard by pressing the Amiga key along with one of the ten possible function keys.
Left Amiga generates macros from 1-10 depending on the function key.
Right Amiga reads macros from 11 to 20.
Defines your macro. "string" now will be automatically typed into the keyboard when you call up macro m.
Reads the current macro assigned to function m.