Go to the Device Manager section and click on your mouse and keyboard name
try each one separately :
Click Properties and disable the second option in Power Management then OK
( second option = Allow this device to wake the camputer )
finally check the situation . Dont try them (mouse and keyboard) both .