Also check: Create a Windows XP/Vista/7/8/8.1/10 Bootable USB
Mouse
1) There is no need to download any kind of software. All we need to do is open Control Panel on your computer.
2) From the top of right side if "View by" is set to "Category", then change it to "Large icons". And now you can see the mouse icon, click on it.
3) Now in newly opened window go to next path:
Hardware > Properties > Change Settings > Power Management.
3) Now uncheck "Allow this device to wake the computer" line and simply press "OK" button twice.
Keyboard
1) Open Control Panel and from the list select Keyboard.
2) Now navigate to next path:
Hardware > Properties > Change Settings > Power Management.
3) And simply uncheck "Allow this device to wake the computer" line and simply press on "OK" button twice.
And now you can put your computer in sleep mode, which will turn on only with the power button on your PC's case.