This can be automated with stylish (or fork) or tampermonkey. I've used to run a userscript on every page to prevent it from intercepting ESC, thanks to squarespace making ESC navigate you away from the current page to the site login. Thankfully the site I used to visit is no longer hosted by squarespace and they seem to have gotten it together to stop intercepting it elsewhere.