run cmd.exe as a admin
powercfg.exe /energy to generate a report that you can view and see what is blocking the shutdown (or sleep).
If it is your mouse and they have custom drivers, I would update them.
It could also be add on software for your mouse that does profiles (non driver)
and all you have to do is exit that program before you attempt sleep or shutdown.
It could also be the driver for the USB host controller also. Some systems have two host controllers on the motherboard, some will have them on the monitor also.
you may find that if you plug in your mouse to a different controller on your motherboard the issue might go away.