Is there a keyboard shortcut to shut down OSX?
Cmd ⌘   Opt ⌥   Ctrl ⌃   Power ⌽  will perform a standard shutdown, asking to if you wish to save open documents first.

There's a list of OS X shortcuts at Apple KB Mac keyboard shortcuts