Allows space bar to toggle the animation play state.