If you cannot wake your PC from Sleep mode using a USB keyboard you may have to specifically allow it to wake the PC from the device manager.
Instructions from the link below:
1. Open the Keyboard control panel item, as described in Method 1.
2. Click the Hardware tab, and . . . → Read More: Wake from USB devices