https://oneminutemacman.com/use-escape-key-to-click-the-cancel-button/
Use Escape key to click the "Cancel" button