If someone presses [R] for some reason then you can undo (including undoing the [R] function) using [Z].