Add text to the input when typing, and switch to esc for exit.

Esc for exit is still just temporary until we have a parsing system.