Motorbike ignition

Also one more question. How does it actually stay latched with this circuit?