This example shows how to make Enter insert a line break.
<div id="entry-enter-br"></div>
const app = Redactor('#entry-enter-br', {
enterKey: 'br',
content: '<p>Press Enter to insert a <code><br></code>.</p><p>Shift+Enter also inserts a line break.</p>'
});