Listen to Enter key

 editor.subscribe('editableKeydownEnter', function (event, editable) {

    // do stuff
    });

or

if (MediumEditor.util.isKey(event, MediumEditor.util.keyCode.ENTER)) {

}