Implemented some more of TextBox.

Now draws a caret which can be moved by the arrow keys. Delete and
backspace also now work.
Allow mouse to set TextBox caret.