Scoping key presses

It would be great if when you add a keypress inside a component it wa scoped to that component only. Seems no matter where you put a keypress its treated as a global event.

Thoughts folks?

Currently the way I’m scoping is adding variable flags and conditions