Implement undo in the Frame Playground.