This question already has an answer here:
Has anyone figured out a way to toggle the function keys on and off via key board shortcut on a macbook? Even remap the
fn key to work more like the caps lock where you do not need to hold it down. It would be really nice to just remap the caps lock to toggle function keys, instead of using it for capitalizing.