How to undo ctrl z in Blender

Okay, listen. You’re in Blender, right? Messing around. You scale a cube — stretch it to oblivion. Then you rotate it, like, whoops, now…