How to repeat a key in mac while holding down? [duplicate]

Solution 1:

There is a terminal command to set the option. Go to terminal and type

defaults write -g ApplePressAndHoldEnabled -bool false

This actually turns it on. You have to restart your computer for this to take effect. You turn it off by typing the same line with true instead of false.

defaults write -g ApplePressAndHoldEnabled -bool true