Resolved #26 by flushing input buffers before waiting for the spacebar.