Added key.js. An object that will handle a single key on the users keyboard.
Also started working on keyboard.js. That handles the collection of key's.
Added a lastDown property and basic functionality for a keydow.
Added the 2 new scripts to the index.html.
Removed the controls object, and added the keyboard object.
Removed controls.js
Added an initialize function to the keyboard that binds keydown events to the document.
Added a self initializing function to the player.
Added a seperate function to handle the keydown events. That function calls the keycode's process key down function.
Started adding keyUp events, firt up is key.js.
Creating a new key returns the key so you can work with it.
Added keyUp functionality to the keyboard object.
Added a check to see if there are callbacks defined, if not. We don't do anything.
Removed the addKey function and added a getKey function that automatically adds a key if it doesn't exists.
Player object now uses the keyboard and event objects to handle user input.
Added a keydelay, this enables the player to hold certain keys. Running by holding the key is now a thing!