macOS power button function

I don’t know how to access this without OnyX:


With this option you can press the power button to get the shutdown dialog.