Do you mean the caps lock key on your keyboard doesn't work? Or that your "Caps-lock brand" keyboard has stopped working? It's unclear from your post.
Do you have another keyboard to test with? Alternatively, do you have a partition or volume with an older OS on it that you can boot back into for testing? The object is to narrow down if it's the OS or the keyboard.