Added code to repaint the GamePanel on each key press