How Do I Prevent My Mac Display From Turning Off When Pushing The Power Button?
Yes, launch the Terminal app (it's inside Applications > Utilities) and then paste in the following command:
defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool no
Hit return and the change will go into effect. If you ever want to undo this change, go back into Terminal and paste the text below, followed by hit return:
defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool yes