made mtext first responder and closing window on ESC