AssignKeyToCmd(key_value, cmd_name)
Assigns the key_value to command named by cmd_name. Subsequently, when the user presses the key_value, the command is invoked.
key_value is a numeric keyboard value that is returned by GetKey and KeyFromChar. You can use CharFromKey to convert a key_value into a character.
cmd_name is the string name of the command.
Example:
key = GetKey();
AssignKeyToCmd(key, "Open Project");