Fix game not being paused when pressing the pause key. Fix game resume on clicking resume or pressing Esc.