macos enable key repeat code example Example: mac hold down key repeat defaults write -g ApplePressAndHoldEnabled -bool false