Howto trigger specific action if anything else BUT this btn is clicked?

I am not even sure how to search for a solution to this, so I’ll ask here. I keep coming across this issue, where I wish I knew how to cancel, or start, one action if anything/any button BUT the last selected button/mc has been clicked. Make sense? Help. Please. Anybody.