Write a start up Apple script by adding the Fn key toggle:
--Check if GUI Scripting is Enabled
tell application "System Events"
if not UI elements enabled then
set UI elements enabled to true
end if
end tell
--Enable/Disable "Use all F1, F2, etc. keys as standard function keys" option in Keyboard & Mouse Preference pane and close System Preferences
tell application "System Events"
tell application "System Preferences"
reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard"
end tell
click checkbox 1 of tab group 1 of window 1 of application process "System Preferences"
end tell
if application "System Preferences" is running then
tell application "System Preferences" to quit
end if
And then start the game:
open application “UrW”
And then after the application exits, run the top part of script again, this time toggling the Fn off, which is exactly the same.
DISCLAIMER: I’m not on my Mac to actually test or post the whole script “turnkey” style.
IF I remember, I’ll see if can make it so...
DISCLAIMER 2: switching between apps while the game is running, the Fn controls will be inverse, e.g. volume up / down would require holding down Fn, then pressing F11/F12 (or what ever the keys are for volume control)