I don't know what engine you have, but if it is a briggs, and you have power to the magneto, then you have a problem with either the wiring or the key switch. At this point the magneto, aka, ignition module is toast and will need to be replaced. but do not replace until you find out why you have power to the module. This will apply to kohlers, and other engines with non powered modules as well.