# Editing Keys

When Windows Frotz 2002 is waiting for input from the user, the following keys have special meanings:

Alt+D | Show the menu of debugging options.
Alt+H | Show the list of available hotkeys.
Alt+N | Restart the currently playing game.
Alt+P | Play back a file containing previously recorded input.
Alt+R | Begin recording user input to a file.
Alt+S | Enter a seed for the random number generator.
Alt+U | Undo the last turn.
Alt+X | Exit the interpreter.
Alt+Enter | Toggle full screen mode.
Delete | Delete the character under the cursor.
Backspace | Delete the character to the left of the cursor.
Home | Move the cursor to the start of the input line.
End | Move the cursor to the end of the input line.
Cursor Left | Move the cursor to the left.
Cursor Right | Move the cursor to the right.
Cursor Up | Show the previous input in the input history.
Cursor Down | Show the next input in the input history.
Tab | Try to complete the last word in the input line by comparing against the game's dictionary.
Ctrl+V | Paste the contents of the clipboard into the input line.

In addition, the following editing keys from GNU Readline (and many other Unix related programs) are supported:

Ctrl+A | Move the cursor to the start of the input line.
Ctrl+E | Move the cursor to the end of the input line.
Ctrl+B | Move the cursor to the left.
Ctrl+F | Move the cursor to the right.
Ctrl+D | Delete the character under the cursor.
Ctrl+K | Kill the input text from the cursor to the end of the input line.
Ctrl+W | Kill the input text from the cursor to the previous whitespace.

The hotkeys assigned to menu items are given here.

Some of Infocom's later games expect to be told when the user presses the cursor keys during input. For example, Zork Zero allows commands to be bound to the cursor keys. In order to get the behaviour of the original Infocom intepreters, hold down the Ctrl key when pressing a cursor key, and instead of being used to edit the input line, the cursor key press will be sent to the game.