Disable caps lock key
You can do this via System Preferences.

More specifically:


Go to Apple > System Preferences…
Click on the Keyboard pane
At bottom right click on the Modifier Keys… button
Now click on the Caps Lock button to select the No Action option  
Exit System Preferences