Check Device manager, expand keyboard, HID Keyboard Device, double click and check that, under power management tab, Allow the computer to turn off this device to save power box is unticked. Tick the box for Allow this device to wake the computer. If you have more than one HID Keyboard Device showing under the expanded Keyboard heading then repeat for all including Standard PS/2 Keyboard. Check the same under Mice and other pointing devices.
This thread is now locked and can not be replied to.