If theTouch Bardoesn’t work, a software issue is likely the cause.
Most of these fixes also work for MacBook Air keyboards.
In a worst-case scenario, contact Apple for professional assistance.
Dont attempt any advanced repairs or disassembly yourself, as Apple fixes some of these problems at no charge.
Some of these fixes require a working keyboard.
If you don’t have a spare keyboard, borrow one.
Heres how to fix a MacBook Pro keyboard that has stopped working:
Clean the keyboard.
Plug in the MacBook.
Wait for the MacBook to charge and then check to see if the keyboard works.
Connect a USB or wireless keyboard and perform the standard procedure of checking for updates.
If you installed one or more apps right before this problem started, it might be causing a conflict.
Restart the Touch Bar using terminal.
Open terminal and typesudo pkill TouchBarServer;> pressenter> typesudo killall ControlStrip;> pressenter.
type your password and pressenter.
Turn off Slow Keys.
If this function is on, you have to hold down each key longer than usual before it registers.
Turn off Mouse Keys.
This setting can cause problems if its accidentally turned on.
Check the keyboard layout setting.
If you have the wrong keyboard layout set, the keys wont function as expected.
A shortcut for checking the input source is to show the Input menu in the Mac menu bar.
Reset the System Management Controller (SMC).
If theres a problem with your MacBooks SMC, it may result in the keyboard not working correctly.
Resetting the SMC usually takes care of the problem.
Seek professional help from Apple.
Before you take your MacBook in for service, see to it toback up the data on your Mac.
Other contaminants, such as food and various liquids, can also prevent a Mac keyboard from working correctly.
you could also try plugging the keyboard into a different USB port.
One way to turn on backlights is to press theincrease brightnesskey or thedecrease brightnesskey.
you could also go to the Control Center, selectKeyboard Brightness, and move the slider back and forth.
Or, in the Touch Bar, expand theControl Stripand tapincrease brightnessordecrease brightness.
To lock the screen, use the keyboard shortcutControl+Shift+Power.