You need to use 2 inputs, connect rocker common to ground and the other two contacts to different digital inputs.
Then try using both edge triggers to generate toggles
or
Use a dwell to run motor.
Watch out: some motors have separate power feeds and you should not connect both at same time. The way round this is to use a Triac for mains power and a relay to select direction. You then use 2 scenes to select direction.