Why dont you just program the power button of the computer only.
I usually do that .
The steps are ,
right click on the desktop-> Properties -> Screensaver-> Click POWER over there -> Advanced
Once you reach there there is a box regarding the POWER button. Just select it.
Regards