It can be set with the Logitech G-HUB software under Device settings, Interactivity lighting..... I set it to NEVER, then the keyboard automatically goes into sleep mode with the PC screen, which makes sense to save battery power. Screen off-dark, would then also be keyboard off, no illumination....
So that your question can possibly be answered, we have forwarded it directly to the community. This is because we unfortunately do not have an effective user experience with the product.