Submit chat messages when the user hits Enter.