Many thanks for all of the replies and help. The placement of the brace was the problem. I will now further refine code as per suggestions. I do indeed want the solenoid and spark to stay activated when pressed, which is why i habe not bothered with bounce (rightly or wrongly).
Thanks again
Danksy