Keyboard almost working, just gotta work out a few bugs with the IORefs.