You stop editing a cell value when you press (Enter)
To cancel the editing without saving the current changes in the document, you have to press the (Esc) key.