Shutting down computer and saving applications

I now see that I could easily shut down the computer. But, I am worried that if I shut down applications that have unsaved content, they will be lost too.

I have one application that does not seem to shut down, so I added it in separately.

Also, I am mystified by the key to trigger the macro. Something like œœœœœ would be really easy to remember because it is Q for quit five times. But that does not seem to work.