How to turn off display by pressing the power button of MacBook Pro 2016? (Changing the behaviors of the power buttons)
As far as I know there's no Apple supported method of changing the power button behavior like that.