Fix a shared keyboard that cannot wake a laptop
Separate operating-system wake behavior from USB switch and device power problems.

Try the direct connection
With the laptop awake, verify that the keyboard works directly. Put the laptop into its normal sleep mode and attempt to wake it with the keyboard. If direct wake fails, check the exact laptop model's wake support and operating-system settings.
Test wake and switching independently
Connect the keyboard through the switch and select the laptop before putting it to sleep. Test wake without pressing the selector. Separately test switching to the laptop while it is already awake. This isolates a sleep problem from a device reconnect problem.
Choose an easy fallback
If resume is the only failure, I would keep the switch and use the laptop's power button to wake it. If the keyboard fails to reconnect while awake too, try the supplied cables and verify whether the switch needs external power. Replace the switch only if the fault follows it after those checks.