How to make a DC motor act as some sort of switch

This is relatively easy to do, tie one side of the motor to two 10k resistors, one going to GND, one to +5V.

The other side of the motor can then go to an analog pin. Treat it like a joystick.

Probably a good idea to stick 100nF or so across the motor contacts to reduce spikes, but the 10k resistors
should protect for any reasonable speed of turning.