copy of keyboardState.js

This is not my own work but I am including it for completeness i.e. so the repository can be self-contained.

Written by Lee Stemkoski and I originally found it at http://stemkoski.github.io/Three.js/

I use these functions for handling input from the keyboard.

I was fumbling around figuring it out when I came across this code fully-formed.