I'm doing it for texarea. A function should be called when the user press Enter, but nothing should be done when Shift + Enter be pressed.
I try to simulate here a feature that many IM communicators have: sending a message on Enter but also adding multiple lines using Shift + Enter.