Oops! I made a mistake.
Control-Z is used to Undo. It erases the last change done to the document reverting it back to an older state or the last operation performed by the user.
Some software programs also provide a keystroke that functions as the opposite Redo operation, which re-applies the last editing operation, generally activated by a Control-Y.
Information gathered from Wikipedia