CancelButton: Boolean;
The CancelButton property determines whether the OnClick event is processed on pressing the ESC key.
If this property is set to True, pressing ESC 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: