key handler and orthographic projection matrix