Added mouse and key stuff to the Window class.