How to change my caps lock key to work as a tab? [duplicate]

My tab key has never worked and I want to switch it's function with the caps lock key since I never use caps lock anyways. I'm using OSX and they only way I've seen to change the function of the keys has been through Preferences -> Keyboard -> Modifier Keys. But there's no tab option. Can anyone help me? I also tried using KeyRemap but it didn't work. Thanks for the help.


Solution 1:

Try using Karabiner Elements. It's a free, open-source app that lets you remap keyboard keys. It's completely safe to use.