A response for a pushbutton is taken whenever a selection is made. This happens whenever the user selects the button with the mouse, or presses the space bar when the button is the active object. The default pushbutton has its response taken when the user, while in the dialog box, presses the Enter key. The cancel pushbutton has its response taken when the user, while in the dialog box, does one of the following:
•Presses the Escape key
•Double-clicks on the system menu
•Selects the close choice from the parent's system menu