I want to pop up a message window/box or dialog box.
The situation is that Cmd-W in an app closes without saving changes and I want to intercept the Cmd-W which I might hit because I'm trying to get rid of a "window". But I want to put up a notice to remind me why I did what I did.
I use something similar. See if this will work for you... Just change the hot key (CMD-Q to Cmd-W), my initials and my message to protect the innocent.