ChatInput can now be closed via escape key

Also, when reopening the chat input bar, the text from the last time is still there, but selected.