How to turn off keyboard lights on MacBook?
F5 decreases keyboard brightness, F6 increases it.

For more information see the Apple KB article Adjust the brightness of your backlit keyboard. If you don't like that the illumination automatically adapts, you can turn it off in System Preferences → Keyboard → Adjust keyboard brightness in low light.