switch between play and edit mode by space key