I think I found the problem. I disconnected the pcb from the foot switch and hooked the pcb up to my test box and it works. The foot switch was soldered to a 3dpt breakout board so it seems the problem was the foot switch or the breakout board.
Thanks for replying.