After thinking about it for quite some time, I cannot figure out what process intercepts the click of the mouse or press of a key to bring a sleeping computer back to life.
You can control what devices are allowed to to wake the computer via the device manager, so I would think the process resides in the OS, but if that is true, where does the process sit while the computer is in sleep mode, and how is it accessed?