How to enable key repeat on Macbook Pro with Yosemite
To disable the press-and-hold character palette, you could try running the following command in Terminal.app:

defaults write -g ApplePressAndHoldEnabled -bool false


Apps may need to be restarted for changes to take effect.

To reenable the menu, run:

defaults write -g ApplePressAndHoldEnabled -bool true