Toggle `fn` key via keyboard shortcut
You can use http://pqrs.org/macosx/keyremap4macbook/ (KeyRemap4Macbook) to set a new function key.

If you're on a macOS Sierra beta, this won't work. Risks with beta software...