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.
Line break missing after this :) Otherwise it looks fine. Feel free to push.