The problem I see on the Messenger page is that it does not use a textarea, it uses contenteditable. The following works for me to prevent enter.
Lee mas