You can also just hit Esc once if you're mid-typing. What you've typed so far will remain in the chat bar, but it will lose focus, so you'll be able to move and use actions, and when you're ready to type again, you can hit Enter and pick up where you left off typing.
Unless you've got Direct Chat enabled. Then, yes, you're stuck using the mouse or something.