Undo (Ctrl+Z) reverses the last action, and Redo (Ctrl+Y) reapplies it.
If you accidentally delete a row, pressing Ctrl+Z will restore it.