space bar behavior is improved (removing print line)