CancelButton: Boolean;
The CancelButton property determines whether the OnClick event is handled on pressing the ESC key.
If the property is set to True, pressing the ESC key while the focus is within the parent form, has the same effect as clicking the button. It is reasonable to use this property for Undo buttons in different dialog forms.
See also: