Implement basic pausing with a boolean that toggles with space bar.