Powerbooks and Macbooks come with a motion sensor to detect sudden and rapid changes in the computer’s position — which is to say, they know when they’re falling, and can act to protect the hard drive accordingly.
Some people have found the tool can also be used to change virtual desktops by smacking the side of the computer, which is pretty awesome.