How can I disable the caps lock key?
Just use the Keyboard pane of System Preferences.

Click "Modifier Keys", and set "Caps Lock" to "No Action".


  

n.b. This setting can be different if you have more than one keyboard.