Fixed bug when spacebar was held down