I've just gone through this on a Dell Precision M3800.
running powercfg /devicequery wake_programmable returned lots of ambiguous device names, including lots of USB Hubs (the system internals contain two plus I was an external USB-C hub for desktop monitors etc.) but no matter what I did with an external wired keyboard+wireless Mouse or wireless keyboard/Mouse combo they wouldn't show up in Powercfg.
The only devices wake_armed were
powercfg -devicequery wake_armed
Intel(R) Dual Band Wireless-AC 7260
Dell GigabitEthernet
None of the HID devices in Device Manager had a power management tab.
To fix it, I did a full shutdown on Windows 10, CMD/Admin prompt via
shutdown /s/r
Then I went into Bios setup via F2 on startup before Windows 10 loaded.
In Bios setup there was a USB Wake Support option, it was disabled. Enabled it, save config and exit.
When Windows booted everything was fixed. The HID devices in Device Manager had Power Management tabs, and showed up powercfg
C:\WINDOWS\system32>powercfg /devicequery wake_programmable
Intel(R) Dual Band Wireless-AC 7260
HID-compliant vendor-defined device
HID-compliant mouse
HID-compliant touch screen
HID-compliant vendor-defined device (005)
HID-compliant consumer control device (004)
HID-compliant vendor-defined device (007)
HID Keyboard Device (005)
Dell GigabitEthernet
HID-compliant system controller (003)
HID-compliant system controller (004)
HID-compliant vendor-defined device (015)
HID Keyboard Device (007)
HID-compliant consumer control device (015)
HID-compliant vendor-defined device (018)
HID-compliant mouse (008)
Also, now the devices in device manager including the keyboard and mouse had Power Management tabs, and Allow device to wake computer was already set on.
