The Escape key is used to cancel actions in progress before they finish. It is also used to close certain dialog boxes.