There is a real chance that you don't define your keyboard shortcuts all in one place. There could be many components that have their own shortcuts. Some might override each other (Press "E" to toggle flashlight on/off or while riding a boat, "E" disengages). Since that's the case, you need a way to turn off or unregister the shortcut.
There is also the chance the shortcut is not being activated all the time. Having experimented with a method like in this library, I can tell you that unless you are focused on a root or parent element to the component, it's not going to fire.
Third, I'm not seeing any tests. Are you instructing people to install this library and it's not tested?
I opted to write my own that defines a single global event listener and can register/unregister shortcuts on the fly. No dependencies and tested[0]