working out the configuration files and stuff
cleaned up the key events so most of them only act on keydown
working on config stuff