Use the undo and redo button in the menu bar to undo and redo any actions you performed on the canvas. Currently, actions you do within a GeoGebra graph are not part of GM's undo queue.