Increase Keyboard Repeat Rate on Mac

If you've ever felt that your Mac was too slow when holding a key down, even after changing it with System Preferences -> Keyboard, we've got a solution for you.

You can run this directly in your terminal:

1
2
defaults write NSGlobalDomain KeyRepeat -int 1 
defaults write NSGlobalDomain InitialKeyRepeat -int 10

Alone, this probably doesn't make too much sense. Let's break it down.

defaults write NSGlobalDomain KeyRepeat -int 1 - here, you're setting the KeyRepeat rate to 1 (15ms). The default minumum is 2 (30ms).

defaults write NSGlobalDomain InitialKeyRepeat -int 10 - here, you're setting the initial wait to 10 (150ms). The default minimum is 15 (225ms).

Source: Apple Stack Exchange