Corrected escape key not closing window.
Added 3D cube and mousePos pointer.