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