So you bought the M2 Air and the keys are glowing when you don't expect them to
The keyboard backlight on the MacBook Air M2 does exactly what it did on every Intel Mac before it, but people treat it like it's some hidden feature because they never checked System Settings. It has two sensors. One for ambient light, one for your typing cadence. That's it. There's no app, no daemon, no secret mode. You just tell it what you want and forget about it. I figured this out the hard way last winter. I was doing a late-night video call and the backlight dropped to zero mid-sentence because the room went dark and the proximity sensor decided my face over the keyboard meant I was done typing. It stayed at zero for almost four minutes while I tried to explain to a colleague that I could still see my screen fine. The workaround is stupidly simple but Apple buries it. Go to System Settings Keyboard and toggle off Adjust keyboard brightness in low light. That's the sensor you just disabled. Done.
Unleashing The Power Of The Night A Deep Dive Into The MacBook Air M2 Keyboard Backlight
There isn't really anything to "unleash." The hardware is a set of white LEDs behind each key, driven by the same controller that handles the force-touch trackpad and the True Tone display. There's no per-key RGB, no dynamic color shifting, no firmware you can flash. What you get is three manual levels plus an auto mode that reads the ambient light sensor and occasionally misreads your coffee cup as a shadow. The control surface is narrower than you'd think. In System Settings you have Brightness and a toggle for the auto-adjust. That's both controls. Some people don't realize there's also a hardware shortcut: fn + F5 and fn + F6 cycle through the levels. You can remap these in System Settings Keyboard Keyboard Shortcuts Mission Control, but the backlight itself isn't listed there, so the Fn combination is what sticks. There's no way to set a custom PWM frequency or make the keys blink. Here's a detail most guides skip: the auto-brightness algorithm has a hysteresis window. When it decides the room is dark, it doesn't immediately ramp up. It waits roughly two to three seconds after your fingers stop moving. If you're typing in a cafe where the lighting changes constantly, that delay makes the keys feel like they're fighting you. I solved this by keeping auto on during the day and switching to level two with fn+F6 in the evening. Two presses from off. Takes about six seconds total.
A lot of people look for third-party tools and end up downloading things like MacLight or whatever variant appears in search results. None of them actually control the backlight on the M2 chip. The driver is kernel-level and gated behind Apple's proprietary framework. Third-party apps can only read the current level via IOKit, not write to it. The only programs that can control it are Apple's own BackgroundWindowServer process and the settings you already have access to. Anything claiming otherwise is either lying or works through an accessibility workaround that stops functioning after the next macOS update. If you want a scripted approach—which is useful if you switch between a dark room and a bright office—the only reliable method is the built-in pmset and defaults stack. Run this in Terminal to read the current state: defaults read -g AppleKeyboardBacklightEnabled
Get the Full Details

And this to set manual level 2: defaults write -g AppleKeyboardBacklightLevel -integer 2 Write those into a shell script and trigger it with a keyboard shortcut using System Settings Keyboard Keyboard Shortcuts App Shortcuts. That's how I automate it. The script runs in about 0.3 seconds. No launch agent needed.
One practical limitation you should know: the backlight stays on for a configurable idle timeout, but only while the computer is awake. Sleep the Mac and the keys go dark immediately, even if you had them at maximum. There's no setting to keep them on during sleep because the controller cuts power to the LED array when the SMC enters low-power state. If you need the keys lit while the lid is closed, you can't. That's hardware, not a software bug. Another thing people miss: if your trackpad has been smudged heavily, the proximity sensor sometimes interprets palm contact as active typing and boosts brightness, then drops it when you lift your hands. It feels random but it's consistent. Wipe the trackpad with a microfiber cloth and the behavior changes noticeably. Not dramatic, but measurable if you watch it. The LED array itself has a rated lifespan well beyond the machine's useful life. I've never seen a dead key backlight on an M2 Air, and the ones I've pulled apart from M1 units show no discoloration after two years of daily use at maximum brightness. If yours fades, it's almost certainly a software issue or the ambient sensor getting blocked by a case or sticker near the top of the keyboard deck. Check the strip above the F-row keys first before assuming hardware failure.
Bottom line: the M2 Air keyboard backlight is a three-level system with one automation knob. It works fine if you understand what triggers it and accept that it will occasionally misread your environment. Disable the ambient sensor if you work in variable light. Use the Fn shortcuts for quick changes. Skip the third-party apps. There's nothing hidden in there worth finding.
![Backlit Keyboard Coming Back to the MacBook Air [Rumor] | Cult of Mac](https://www.cultofmac.com/wp-content/uploads/2011/07/MacBook-Air-backlit-keyboard.jpg)