Updating the chat message by pressing the enter key instead of using the anchor