# How to change the key repeat rate on a Mac

Canonical page: https://leversmac.com/key-repeat-rate-mac

> Make held keys repeat sooner and faster on a Mac, set them in Terminal, and stop the accent menu from appearing when you hold a letter.

[Atta 🐬](https://x.com/attacomsian)

Maker of Levers

Updated November 17, 2026

Quick answer

Open System Settings › Keyboard and drag **Key repeat rate** towards Fast and **Delay until repeat** towards Short. Hold a key in a text field to try it. If holding a letter shows a menu of accents instead of repeating it, that’s press and hold, and one Terminal command [turns it off](#why-does-holding-a-key-show-accents-instead-of-repeating-it).

[Levers](#levers) sets both past the sliders’ fastest ends with one click, and puts back what you had when you turn it off.

## How to change the key repeat rate and delay

1. Choose Apple menu › System Settings, then click **Keyboard** in the sidebar. You may need to scroll down.

2. Drag **Key repeat rate** to the right, towards Fast, for keys that repeat more quickly once they start.

3. Drag **Delay until repeat** to the right, towards Short, for keys that start repeating sooner after you press them.

4. Click in a text field and hold a key such as Delete or an arrow key to try it. Move the sliders again until it feels right.

With Key repeat rate set to Off, keys don’t repeat at all.

When you hold a key down, the Mac waits a moment and then types it again and again. Two sliders set how long it waits and how fast it repeats. Holding Delete to clear a line, or an arrow key to move through text, gets quicker with both turned up. Terminal sets the same two settings as numbers, and takes numbers past the sliders’ ends.

## Ways to change key repeat on a Mac

| Way                                   | Rate and delay of your own | Past the sliders’ ends | One step |
| ------------------------------------- | -------------------------- | ---------------------- | -------- |
| Sliders in System Settings › Keyboard | Yes                        | No                     | Yes      |
| defaults write in Terminal            | Yes                        | Yes                    | No       |
| Levers                                | One fast setting           | Yes                    | Yes      |

Yes Partly No

## Why does holding a key show accents instead of repeating it?

That’s **press and hold**. Hold a letter that has accented forms, such as e or a, and macOS opens the accent menu instead of repeating the letter. Keys with no accents to offer, such as Delete and the arrow keys, repeat as usual.

System Settings has no switch for it. Apple notes that with Key repeat rate set to Off the menu doesn’t appear, but then nothing repeats either. To have letters repeat, turn press and hold off in Terminal, then quit and reopen your apps:

```
defaults write -g ApplePressAndHoldEnabled -bool false
```

You can still type accents with Option. On a U.S. keyboard layout, Option-E and then a letter types it with an acute accent, as in é. To bring the accent menu back, see [how to put it back](#how-to-put-key-repeat-and-the-accent-menu-back).

## How to turn off press and hold for one app

If you only want letters to repeat in one app, such as a code editor with Vim keys, write the same setting for that app alone, using its bundle ID. For Visual Studio Code:

```
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
```

Quit and reopen the app. Every other app keeps the accent menu.

## How to set key repeat in Terminal

The sliders write two numbers: **KeyRepeat**, the time between repeats, and **InitialKeyRepeat**, the time before the first one. Smaller numbers are faster. These commands set KeyRepeat to 2 and InitialKeyRepeat to 15, the fastest the two sliders go:

```
defaults write -g KeyRepeat -int 2
defaults write -g InitialKeyRepeat -int 15
```

Terminal also takes smaller numbers than the sliders reach, such as KeyRepeat 1 and InitialKeyRepeat 10. Go one step at a time: keys that repeat too soon type a letter twice when you meant it once.

## How to put key repeat and the accent menu back

Drag the two sliders in System Settings › Keyboard back to where you like them. To remove what Terminal wrote, so macOS uses its own values again, run the first two commands for key repeat, and the third to bring back the accent menu:

```
defaults delete -g KeyRepeat
defaults delete -g InitialKeyRepeat
defaults delete -g ApplePressAndHoldEnabled
```

## Why didn’t the new key repeat speed take effect?

A value written in Terminal isn’t picked up by apps that are already open, so an app can keep its old speed: quit it and open it again. If keys still repeat at the old speed, log out and back in, and every app uses the new one.

## Or switch on fast key repeat with one click in Levers

We make Levers.

Levers’ Fast Key Repeat switch writes KeyRepeat 1 and InitialKeyRepeat 10 in one click, faster and sooner than either slider goes, the same two settings the Terminal commands write, and keeps a note of what you had. Turn it off and your own values come back, or macOS’s if you never changed them. As with Terminal, apps use the new speed when they next open.

- Both settings fast in one click, no commands to remember
- Your own values back when you turn it off
- A keyboard shortcut of your own to turn it on and off

Good to know

- Levers has one fast setting; for a speed of your own, use the sliders or Terminal. It doesn’t change press and hold, so letters with accents still open the accent menu until you turn that off in Terminal.
- Needs macOS 15 Sequoia or later.
- One payment, no subscription, with a 14-day refund.

[See all switches](https://leversmac.com/features/switches)

## Questions people ask

### How do I make keys repeat faster on a Mac?

Open System Settings › Keyboard and drag Key repeat rate towards Fast and Delay until repeat towards Short. For numbers past the sliders’ ends, set KeyRepeat and InitialKeyRepeat in Terminal.

### Why won’t a letter repeat when I hold it down?

Press and hold opens the accent menu for letters that have accented forms. Turn it off in Terminal by setting ApplePressAndHoldEnabled to false, then reopen your apps.

### Why didn’t my Terminal key repeat change work?

Apps that were already open don’t pick it up. Quit and reopen the app, or log out and back in so every app uses it.

### How do I reset key repeat to the default?

Move the sliders in System Settings › Keyboard, or delete the KeyRepeat and InitialKeyRepeat values in Terminal so macOS uses its own again.

### Is there an app that makes key repeat fast with one click?

Yes. Levers’ Fast Key Repeat switch makes keys repeat sooner and faster than the sliders allow, with one click, and puts back the values you had when you turn it off. It costs from $6.99, paid once.

## More guides

- [Caps Lock to Escape](https://leversmac.com/caps-lock-to-escape-mac)
- [Standard function keys](https://leversmac.com/use-function-keys-mac)
- [Keyboard backlight](https://leversmac.com/turn-off-keyboard-backlight-mac)
- [All guides](https://leversmac.com/guides)
