Is there any APi function that could give my system go standby and have a rest after I press any key on my keyboard ?

Thanks alot...

Regards,

-Hometown