So I unintentionally rode to work this morning, and my bike shut off a few times on the way. The last time it shut off, I took all of the keys, except the main ignition key off the bike's key ring, and after that, my bike didn't shut off until I turned it off when I got to work. I'm thinking the weight of my other keys was turning the ignition off. It's still not running right though.
Sound's like you need to pull the ignition barrel apart and clean the switch contact's, put some Dielectric grease on them once you're done. I did mine when i first got it as the steering lock didn't work, so while the ignition barrel and swwitch was off i cleaned up the contact's for the switch and greased it up at the same time