When the mouse is in the graphics window, many commands are
accessible via programmable hot keys. Hot keys allow you to do things
like change mouse modes or advance the animation by a frame by simply
pressing a key.
There are a number of predefined hot keys,
as listed in tables 5.1,
5.2, 5.3,
and 5.4.
They can be printed out with the command user print keys.
The commands listed are the text commands which are executed
when the hot key is pressed; these text commands are explained in
section 9.3.
To add or modify a hot key, use the command
user add key keycommand.
The key parameter must be a single character.
If command contains more than one word, it must be enclosed in
braces so that the subsequent command words are not ignored.
When that key is pressed while the mouse cursor is in the
graphics display window, the associated command will be executed.
Once you have a set of commands which are particularly
useful and familiar for you, you will want these
hot key commands automatically available every time you run VMD.
This can be done by placing the commands to add these items
in your .vmdrc file, which is a file containing VMD text
commands that is executed every time
VMD starts up.
The basic method for setting up this file is described
in section 14.3.3.
Once you have such a file, put the user add commands in it.