add sendMessage on enter key and clear the input