Fixed a couple residual issues in onMouseClick (thanks _123DMWM). Continued cleanup on the input system. Moved all input-handling code out of tick() into handleInput() method.