Of course, you tested it before sending. It was late and I didn't see I had another brain enabled that kept the relay on.
So I was a man with 2 brains!
Thank you for all your help.
Also, I would like to try the Tweekie approach.
If I use pin 3 for Z direction and have pin 3 OUTPUT # 1, pressing Z down should turn on the relay.
But it doesn't so I must have missed something.