If you’d like to apply a set of keyboard shortcuts to a
large section of the tree, you can use the Shortcuts widget:

The Shortcuts widget is useful because it only
allows shortcuts to be fired when this widget tree
or one of its children has focus and is visible.

The final option is a global listener. This listener
can be used for always-on, app-wide shortcuts or for
panels that can accept shortcuts whenever they’re visible
(regardless of their focus state). Adding global listeners
is easy with RawKeyboard:

To check key combinations with the global listener,
you can use the RawKeyboard.instance.keysPressed map.
For example, a method like the following can check whether any
of the provided keys are being held down:

Putting these two things together,
you can fire an action when Shift+N is pressed: