PowerDown Enhancer is a tweak that (supposedly) allows you to change your power button's functionality. It doesn't seem to work very well, most of the time, but your mileage varies.

I did not make this video, nor am i responsible for the contents of it.

This tweak is available for free from the ModMyi repo.