macOS system preferences allow you to change the keyboard backlight settings on MacBooks, but there aren't many of them and may not be enough for fine-tuning.
With the Dim Keys utility, you can set the exact brightness and sensitivity of the backlight.

The utility is completely free to download.