Checkout : Apple support.

Disable ‘Adjust keyboard brightness in low light’.