space key only does things when it should