Perform action globally EXCEPT in specific app

I want to carry out an action when a keyboard shortcut is pressed globally, but I don't want this action to be carried out if the shortcut is triggered in a particular app. How can I achieve this?

Simply go to that specific app and add the trigger with the action do nothing.

Thanks! Don't know why I didn't think of that before.