To stop the fuel flow, you'd need to disable the ignition system (turning the key to "off") or disconnect the power to the fuel pump (which is usually located in the fuel tank and requires dropping the tank to access). Neither is a simple "switch" solution.
Important Note: Disconnecting the fuel pump relay (a safer alternative than messing with the tank) is possible, but requires finding the relay, knowing which one it is (consult a wiring diagram), and understanding the associated risks. Improperly disconnecting electrical components can damage your vehicle's electrical system.