Help with coreless micromotor. Can I add a switch?
Wires:
If you do use glue, thick glue only. Thin glue, such as instan/power glue will seep into the body very easily.
Best to have a 2mm long ring of good quality heat-shrink (e.g. polyolefin if composition is given).
Fold the leads onto the body, push the heat-shrink around it (there should be enough free room to achieve this easily, so don't buy it too small).
Shrink with hot air (not a flame or soldering iron!), such as a household hair-dryer on maximum.
If need be, fold the wires back and add another ring.
A lightly flexible fold-back connection is better than a hard-glue one, since the wires will snap at the glue edge just as easily.
Switch:
You can wire these up with normal wires and glue them onto a surface. Should be easy enough. Do watch out that two leads will be connected together on each side.
Most likely a pair that is lightly bent towards each other is hard-connected and the switch only connects the two sets together.
So it very probably looks a bit like this on the inside:



simulate this circuit &ndash; Schematic created using CircuitLab
But, always measure/test to be sure.
EDIT:
And be careful with the leads, they are a little fragile, so if you flip-flop around with wires a lot before you glue them down (or such) they may break.
There are also tactile switches that you can screw into a surface, but maybe that's too much DIY-ing to then mount that surface to something?:
One eBay Example
Another eBay Example
And another one (The 12V is just &quot;this is only for low voltage&quot;, 3V is fine too)
They are also available for buying at DigiKey, Farnell, etc as &quot;Panel Mount Momentary Switches&quot; or other such words, in case links become invalid (probably soon)