added functionality for the chat to send when you press enter