Cleaned up some of the opengl keyboard code.