Momentary switch arm and bypass circuit
simulate this circuit &ndash; Schematic created using CircuitLab

If you use this signal as an input to a micro controller or a logic IC, you may want to use a pull down resistor and a appropriate voltage divider before connecting the 12V signal directly to the input.