document.addEventListener("keydown", e => {
if (e.code === "Escape") {
let modalBoxes = document.querySelectorAll("[id^='modal']");
document.addEventListener("keydown", e => {
if (e.code === "Escape") {
let modalBoxes = document.querySelectorAll("[id^='modal']");