Thank you for your reply. I understand that I should be using CGEventTap to try and monitor the input I need.
I am still confused though about if it is possible to trigger actions like shortcuts from my app. For example, if I want to implement a functionality where my app can programmatically trigger a global shortcut, is this possible? When I say global, I mean being able to trigger the shortcut such that it works in whatever app is active, not just my app. I think the way to do this is through the .tapCreate in CGEventTap, but I don't think that can be accessed with just input monitoring permission in sandbox.
Would it be possible to request an exception to allow something like this inside my app?
Thanks again!