This demonstrates another way to move things around in, for example, a maze. Rather than relying on the arrow keys to control direction, it uses the mouse pointer. Only when the space key is pressed, the ball moves toward the mouse pointer. In this instance, the up arrow and down arrow keys adjust the speed of the object within the limits set by the min and max speed variables. One advantage of this method over using the four "arrow" keys is that targeting the mouse pointer gives much finer control over the direction.