This is actually a note to myself when configuring cursor behavior on mac. Credits to @hafci.
defaults write -g ApplePressAndHoldEnabled -bool false
If you have the dock on autohide and want it to open directly with no delay:
defaults write com.apple.Dock autohide-delay -float 0
Set a blazingly fast keyboard repeat rate:
defaults write NSGlobalDomain KeyRepeat -int 0
Set a shorter Delay until key repeat:
defaults write NSGlobalDomain InitialKeyRepeat -int 12
EDIT: This works with old macs, but for new Yosemite just go to system keyboard and max the first two sliders. That works better!