CreateKeymap name(parent:Keymap...),...

Create a keymap. A keymap contains a set of keystrokes and commands active in a particular context. The name is an identifier or ByName() expression that names the new keymap; this keymap must not yet exist. If desired, one or more parent keymaps can be specified in parentheses; if the keymap should not have a parent keymap, the parentheses can be omitted.

The keymap can later be filled with keys using the Bind command.

A key is looked up first in the keymap itself. If it is not found there, it is searched for in the parents.

Keymaps have a separate namespace from variables, i.e. a keymap MyStuff and a variable MyStuff are not related in any way.

See also: Bind, UseKeymap, Key, Elementary Commands