I had this problem and found the solution so I share with the community.
Basically in BIOS when the "enable wake up from USB on S3/S4/S5 states) is enabled, the PC would wake up on all these sleep states.
Me, as most users, I would like to wake up the PC from S3/S4 state with the hit of a key or the mouse, but would also like that nothing (like a micro movement of the mouse) wakes up the PC when in S5 state.
To solve this, enable the setting in the BIOS for "ErP" setting.
Afterwards the PC would only wake up by USB device when in S3 and S4 states.
Basically in BIOS when the "enable wake up from USB on S3/S4/S5 states) is enabled, the PC would wake up on all these sleep states.
Me, as most users, I would like to wake up the PC from S3/S4 state with the hit of a key or the mouse, but would also like that nothing (like a micro movement of the mouse) wakes up the PC when in S5 state.
To solve this, enable the setting in the BIOS for "ErP" setting.
Afterwards the PC would only wake up by USB device when in S3 and S4 states.