That will switch the keys, when freelancer is the active window, but I'm after a toggle, so that I can change them back and forth when I want. Your script won't do that.
I need to be able to switch between the two on a keypress, and I can't get that working.
I think my script is close, but obviously not right.