I would like a to turn off the caps lock via the command. I understand that I can System Preferences > Keyboard > Modifier Keys > and change it there. The problems is that every time I plug and unplug my gaming mouse into the USB port, the keyboard caps lock is reset, and I have to do the above steps again and again. (Somehow, my Mac is sensing the gaming mouse as another keyboard. If I had some command line code, I could just make an alias and disable the caps lock in one step. I thank you for any help.