Click on the Undo icon in the standard toolbar, press Ctrl+Z or select Undo in the File menu to undo the last draw or edit operation.
Click on the Redo icon in the standard toolbar, press Ctrl+Y or select Redo in the File menu to reverse the effect of the Undo operation.