What kind of a controller and breakout board do you have? If it's something like an Arduino with 5V logic inputs, then simply moving the switch cables around may cause problems.
Have you looked at the switch status in your control program? Do the switches work properly and reliably if you push them by hand?