The Translate a Key Name into a Key Code routine translates the key name of a key on the keyboard into its associated key code. Format SMG$NAME_TO_KEYCODE key-name ,key-code