You have an incorrect string. In the if statement of the onKey callback, there should be e.key === ‘Enter’, not e.key === ‘Ener’.
That’s why the selection of the next row is not prevented.
As for the end of the edit, you cannot prevent this.

Best Regards,
Svetoslav Borislavov

Smart UI Team