Move keyState to Session. No apparent reduction in performance, looks good.
Implement toggleState session variables.
Change some comments, add reactive view templates for mouse variables, make spacebar toggle actually do something.