Just thought i'd give a suggestion. When letting the user set a function key why don't you have the script check to see if it is already used by another script. if it is inform the user to choose another function key, Another script is using this key.
;//echo is function used: $FunctionUsed(F2)
Alias FunctionUsed { return $isalias($1) }