# Undo/Redo demo move cubes and rewind with Ctrl+Z / Ctrl+Shift+Z. ```{raw} html ▶ Run in browser ``` **Tags:** `ui` Run with: uv run python examples/features/ui/undo.py Controls: 1 / 2 / 3 Select cube Arrow keys Move selected cube (Left/Right = X, Up/Down = Z) Ctrl+Z Undo last move Ctrl+Shift+Z / Ctrl+Y Redo ## Source ```{literalinclude} ../../examples/features/ui/undo.py :language: python :linenos: ```