You might consider adding a relay. Take a look at the drawing chaamy posted here: Issues with modifying Lightning McQueen Toy Car (bigger version)
The correct drawing is at the bottom.
If you find the mechanical switch is not sensitive enough, you can use a proximity switch instead. For that, you would also have to add the relay as well.
– Doug
1 Like