Momentary switch 12 V motor reverses game
You can use a relay with two independent NO and NC switches, DPDT relay (last one on the right).

Image source: Electronics Tutorials - Electrical Relay
This properly connected will inverse the polarity on the motor when the relay is activated.