Sometimes you want to use the same input to do different things. For instance, you want the left arrow key to choose a character during one part of the game but move the object left during another. or, you may only want the arrow keys to work during parts of the game. In this example, the left and right arrow keys are used for two different purposes by creating a "game state" variable. Please see the notes in the program. PS. The variables are shown on the screen for clarity. Once the program is completed, you would want to hide them.