I agree that it could be the ignition switch, they tend to give problems, but my 640 also cut out intermittently and the fault was very hard to find.
On the sidestand and clutch switches there are diodes (behind the headlight, look on the wiring diagram) which are still in the circuit despite the switches being bypassed. In my case, the terminal was crimped on too hard (or had a sharp edge) and the copper wire was just about cut through.
After fixing that it never gave trouble again.........touch wood!