dom-event-filter
Allows you to split your page to contexts and catch events (like hotkeys) by mask-objects from config
Usage no npm install needed!
<script type="module">
import domEventFilter from 'https://cdn.skypack.dev/dom-event-filter';
</script>