You can disable "allow this device to wake the computer". In device manager, you can expand the mouse section, and then right click on the mouse. now, click on properties and go to the power management section. untick the "allow this device to wake the computer".
Do the same for the keyboard...