Make textbox mode disable itself when the current GUI is closed.

Separates it from the generic shortcut enabled to prevent forcibly enabling it when GUIs are closed.