IMO better still, I would just name the function `_keydown` and be done with it.

As is, it just takes any `keydown` event and decides whether it's an enter, and maybe doesn't send it. It may not be a message at all!

I prefer to just have it clear.