Like an iPad, the brightness of the Magic Keyboard automatically adjusts based on the light conditions around you. If you want to manually adjust the brightness of the keys on your Magic Keyboard, go to Settings > General > Keyboard > Hardware Keyboard.