The exact same thing happened to my savannah yesterday, but inflight, all avionics went dead, pretty much the master turned off, jiggled the key again and all came back to life, once on the ground we couldn't turn the key to the off position, once mags were off the engine shut down as usual, but key could not be moved to off position, or start position, couldn't even remove the key!
So after borrowing a car, some of a fellow instructors electrical tools, we now have installed a new independent master switch, and nice big red led push to start button. Switch, like the aircraft is 819 hrs old.
Though thinking back on it, the electrical system would randomly cut out for a millisecond leaving us with a WTF moment, but this would only happen every 50 hrs or so. I'm certain now with the U/S switch removed, it won't happen again.