keyboard fixes so SPACE in calibration turns displayed fixation stimulus
off, even if eye signal not present. other fixes and refactoring to
stateMachine