Had the same problem here. Bike is always outside, even in ice, snow and rain. The keyswitch wasn't turning well, few times after the ignition went crazy.
Bike was on and off, switching the ignition on, with the key in my pockets. Couldn't start it though, probably the EWS. Day after, bike wouldn't start at all, even with the key, EWS was going nuts. Had it towed to a dealer, he replaced the electronic bit under the key switch.
Was fine for about a month, than the same sh#t again. took it to an other dealer (my usual dealer) and he replaced the entire bit, key switch with the electronic bit and stuf, now it is working fine.
Though I'm not sure I can trust it with my life
Grtz, Philip!