Hit the Escape key (esc, at top left of keyboard) instead of mousing to and clicking on the “Cancel” button in any dialog box.
Bonus Shortcut: Enter (or Return) almost always clicks the default button (the one with the heavier border) in a dialog box.
Double-Bonus Shortcut: Command-D almost always clicks the “Don’t Save” button.