Keyboard Shortcut Observer Observe keyboard events on the document, if the event.key combination matches the pattern provided invoke the provided handler.
Construct a new observer to listen to the keyboard
the keyboard pattern to look for, examples are "Shift P", "Control m", "Meta s"
the handler to invoke when a match is found
a name to identify the shortcut
Keyboard Shortcut Observer Observe keyboard events on the document, if the event.key combination matches the pattern provided invoke the provided handler.