Implements handleInput in GameScreen