OSX: Disable Keyboard Press and Hold

When you press and hold A in your keyboard, OSX will give you several accented A character to choose from.

To disable this behaviour:

defaults write -g ApplePressAndHoldEnabled -bool false

Then you need to logout and login again before you can see the change.

To revert to default behaviour:

defaults write -g ApplePressAndHoldEnabled -bool true
# or
defaults delete -g ApplePressAndHoldEnabled

Logout and login again.