Pretty stable key event system for the window class.