Just wondering if it wouldn't be better to add the listener on a form/body element and use bubbling instead. My guess is if you have >= 2 inputs, it'd probably make sense to bubble these events.