So this is where `window.addEventListener` comes in handy.