xmodmapping

Copied from http://www.chrisamiller.com/blog/2012/05/11/remapping-your-macbooks-keyboard-in-ubuntu-12-04/