1) If you disable the keyboard, how do you intend to wake your computer back up from sleep mode?
Usually people touch a key, then the computer wakes up from sleep because of that. Do you want to put everything to sleep, then wake it back up at a set time instead?
I typically move my mouse to wake my devices. When I run the script it disables the lights, but I can still use the mouse to turn everything back on.
2) What difference does it make to include the keyboard, based on power consumption?
That's assuming that the purpose of the script is to put everything to sleep to save power, or do you have some other reason?
My computer has a lot of RGB lights, but when I go to sleep it's very distracting. Sometimes I want to keep my computer running over night to do something, so I wanted to make a keybind that turns off the lights / monitors.
Edit: I'm pretty inexperienced at Autohotkey and I didn't notice at first, but the script modification you made seems to block inputs. I guess I never realized that the initial script also turns off my mouse / mouse pad lights as well. To be clear, my goal is to just disable my monitors / all of my RGB lighting until I move my mouse / press a key on the keyboard. I'm even fine disabling the keyboard (if that's the only way to turn off the lights) if I can turn it back on again when I move the mouse. I'm fairly sure that was my fault for not being clear enough, my apologies.