You can either press ENTER when already in cell editing.
The action is found in the menu: Document+Grid Edit → End Editing
To cancel the editing without saving in the document the current changes, you have to press the ESC key.