You can use the Hardware library to catch the key events and just don't do anything.
Also see KeepAlive in this library, which prevents the device from suspending.
see this thread for a custom library which allows turning the screen off:
http://www.basic4ppc.com/forum/quest...creen-off.html
It is not possible to capture the power button.