To disable their ability to wake up the system, go to the device manager, find the desired device, right-click on it and select "Properties".
On the Power Options tab, disable the "Allow this device to wake up computer" option and apply the settings.