enter key and submit button behave the same for the chat client