fuel pump is on its way out , it is breaking up in the inside and small bits get stuck
in the magnet and jams it open or shut. when you take the key out and it still runs give it a rev it will soon stop
then clean out the solinoid switch and the hole it screws into