Fixed spacebar bug