Add "Escape" key handling to modal boxes.
Review Request #13127 — Created June 26, 2023 and submitted — Latest diff uploaded
This change adds handling for the "Escape" key to close modal boxes,
typically with the cancel operation.
Verified that the changed modals could now be closed by pressing the
escape key.