How to Shut Down Mac with no mouse

How can you safely shut down your Mac if your mouse stops working?

If needed, press ⌘tab to visit each open application, and use ⌘S to save your work. Press ⌘tab until the Finder is the front application.

If there is a Finder window open, fine. If not, press ⌘N to get one.

Press Control-Tab to get the text cursor into the spotlight window in the upper right.

Type

terminal

    • Use the arrow up/down keys to select the Terminal application from the search results.

Press ⌘O to open the Terminal

In the terminal window type:

sudo shutdown -h now

    • Press return.

Enter your password. Your Mac will shut down.

Can you think of an easier way?
This tip was created and tested on MacOS 10.6.5. It should work on any version of MacOS X since spotlight was introduced.