You can shut down (or put to sleep) an iMac with a combination of keyboard presses that I can only remember if I don't try to remember them. The moment I think about the keys, I can't remember precisely which and I have, horror of horrors, have to click the Apple menu which sensibly lists sleep, restart, and shutdown. Of course, with a Macbook, you just close the lid.