# 12.29 Give every drag a key path and undo

> Chapter 12, Pointer and keyboard. Section: Drag and drop with a pointer. Guide: https://www.designguide.dev/md/12-pointer-and-keyboard.md#give-every-drag-a-key-path-and-undo

Default

**Rule:** Let Space pick up an item, arrows move it, Space drop it, Esc cancel, and let the person undo a drop.

**Why:** A drag-only move locks out keyboard users, and a confirm on every drop gets ignored.

- [Rule 15.15](https://www.designguide.dev/r/give-every-drag-a-non-drag-path.md) holds the rule for a non-drag path.
- Ask first only for a drop that undo cannot reverse.
- Keep the dropped item selected after the drop.

**Picture:** Figure: Keys lift, move, and drop a row. A toast offers Undo after the drop.

**See:** [15.15 Give every drag a non-drag path](https://www.designguide.dev/r/give-every-drag-a-non-drag-path.md)
