How to automate Caps Lock Delay Removal in macOS MacBook Pro?

I'll start with quoting another Stack Overflow user:

Apple's MacBook Pro has a slight delay on the caps lock key. That is, the caps lock key has to be held down slightly longer than normal to register the key press required to engage the caps lock.*

It appears that by remapping the caps-lock key on macOS (in System Preferences, Keyboard, Modifier Keys), the delay goes away until reboot.

I would like to automate this settings configuration remapping with a script and to set it to run at startup. I have tried to use Automator but with no luck. How can we achieve this?

*Quote reference: How to remove caps lock delay on Apple MacBook Pro aluminum keyboard when booted to Linux


I don't have a script but I just fixed this a few minutes ago on my Macbook Pro. Here are the steps I took:

Go to System Preferences > Accessibility > scroll down to keyboard > look for checkbox Enable Slow Keys (If it is not ticked go ahead and tick it) > Go to Options... directly across from it.

Then move the Acceptance Delay all the way to Short.

Hit OK and you're done. No more CAPS LOCK delay.

*Edit: Another post mentioned that this will make your Backspace take a little longer than usual to delete individual characters when holding the button down.


I've developed a very lightweight, open source app for mac to solve this exact problem.

https://github.com/gkpln3/CapsLockNoDelay