I did precisely that with an old car install of mine. I wanted the ability to remove the key and still listen to the stereo. Use a DPST (Double Pole, Single Throw) , wire one side to your existing radio wire (or any circuit controlled by your key) and the other pole to a constant power source. The output can drive a relay, or if the switch is rated high enough, the inverter directly.