The onKeyDown handler intercepted Enter unconditionally when the composer completion menu was active, preventing Shift+Enter from inserting a newline. Add !e.shiftKey check so Shift+Enter bypasses suggestion selection and falls through to the default newline behavior.