Please enable JavaScript to view this site.

Vensim Help

Execute the command and shift to the named screen when the user presses any key or clicks on the mouse.  This is usually used to control liner movement through a set of screens.  If a screen contains TEXTMENU or BUTTON controls the ANYKEY control should appear last, and will be  activated for keys and button presses other than those trapped by the BUTTON and TEXTMENU controls.

ANYKEY,"",0,0,0,0,j,a,,S2

ANYKEY,,,,,,,,,S2

The above are equivalent. filling in the fields makes it clearer which is which.  Note that you cannot fill in the command field, except with valid commands.