Those of you who rarely perform a full shutdown or reboot on your MacBook may occasionally encounter issues with the Touch Bar.

One such issue is stuck keys.
Unfortunately for me my escape key happened to jam on, so I couldn't use some applications, and couldn't even access the menu to perform power operations!

Thankfully, there is a fix for this:

  1. Open Launchpad by pinching inwards on the touchpad with your thumb and three fingers.
  2. Open Terminal.
  3. Run killall ControlStrip && pkill "Touch Bar Agent"

If you receive a permission-related failure, run the following command instead: sudo killall ControlStrip && sudo pkill "Touch Bar Agent"

Some of the keys on the Touch Bar will disappear for a moment.
After this, it should be good as gold!