Controlling direction of unipolar stepper with buttons

I understand what you want and that is what the code provides for. When the right hand limit switch is reached the input to its Arduino pin is no longer LOW and the program exits the first while loop. The state of the right hand switch no longer matters as it is not being checked. The same thing happens going from right to left.

Comment out the second while loop (3 lines). Does the carriage move to the end and stop ?
Put the second while loop back in place and comment out the first one (3 lines). Does the carriage move to the other end and stop ?

You say in an earlier post that when pressed the switches go to 6V. This sounds suspicious. Where are you measuring the 6V ?
Can you please draw a simple diagram to show the circuit including the switch, ground the Arduino power pins, resistor and switch ?

Beautiful, incredible, flawless, marvelous! The fault was the switches; they were floating. I had them connected; pin to resistor to ground. Your patience is much appreciated. This sculpture involves servos, steppers. and DC motors, none of which I have much experience with. I am breaking it down, one challenge at a time. Splicing it altogether is going to be a hair pulling ordeal! Thanks again.
Keith

Glad it worked.
See you at the next stage of the challenges

Here is a fuzzy video of the stepper, part of an armature for a sculpture. - YouTube