Each drag, placement, copy, deletion and inspector change is one step in Edit > Undo and Redo (⌘Z, ⇧⌘Z), named after what it did ("Undo Move barrel"). A step is written when the button comes up, as Room 3D writes it: the room file gets the thing's nearest whole place (only its x and y change), its creation code the rest (x += 0.25;) and z, rot_* and size, each value's line only. Values that did not change keep their text, a thing moved back to where it was gets its original text again, and an unchanged room is never rewritten. Undo puts the files' bytes back exactly. Code files of deleted things go to the Trash.
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.