Fixed input to work from mouse or spacebar.