Hi,
I'm a newbie in both applescript and workflow, however I just have "coded" a very simple workflow to toggle Apple keys and function keys. The workflow is activated with the shortcut "ctrl+@". A notification is returned to the system once keys have been toggled.
If you're interested, you can download it from here
I hope it helps some of you
++