Turning off the keyboard light automatically when charing?

Is there a way that the keyboard light automatically turns off automatically when charing after Windows has been shut down (- just like it turns off automatically when no charger is attached)?

Thanks

No, you must press F5 after turning off Windows so that the keyboard lighting turns off while charging the battery

That’s “bad” - but thank you for your response…