On my Macbook Pro, whenever you press the power button it goes into sleep mode. How do I change this to do nothing?
You can control whether pressing the power button should put your mac to sleep or present a dialog with options (sleep/restart/shut-down) using the
will put it to sleep right away (presumably your current setting) and changing
Pay attention to the fact that it's not a per-user setting, and changes the behaviour for all users. Something to keep in mind if you share the device with others. From the man page (explore it for other options):