added debug log, key events, and MVP matrix