You want a double pole, double throw, momentary switch.
The slide in/out is just the polarity of the wires. On a switch like the above, wire power to the center 2 pins, then connect the motor to the top or bottom set. Last, jumper from top left to bottom right and from top right to bottom left, making an X between the top and bottom pair of pins. This makes one polarity when switched up and the other when down.
If you want to flip which way runs in versus out, turn the switch over or reverse the center 2 pins.
Thereโs a picture here:
https://forum.allaboutcircuits.com/threads/i-need-help-with-this-circuit-concerning-polarity-switch....