you would use the undo button
Ctrl+Z will undo whatever step you did last, including erasing something. :)
9.5m questions
12.2m answers