macOS tip: System Preferences > Keyboard > Shortcuts > turn on "Use keyboard navigation to move focus between controls". This allows tabbing between controls in dialogs/alerts. Hitting space performs the selected action. Hitting return performs the default action.