Hmm.. I don't think the soft power switch on the front of the cabinet will generate a key sequence, but it probably generates an event that the APM kernel module should deal with, but I don't know the specifics. I'd look in the Ecology-HOWTO, and the Laptop-HOWTO, since they are most likely to have the information you're looking for. In the meantime, you need a molly-guard.