Stop adding ghost text and key maps when no text is available.

Closes #57.