Reed switch and stepper motor

                        Stepper1.targetPosition()==Stepper1.currentPosition();

This is a (useless) comparison, not any kind of assignment. You use the Stepper1.moveTo() method to define a target position. I don't know what method you use to abort a move in progress. That is what you need to figure out.