Elevator Control Logic

What if the elevator is moving forward motion and gets signal for reverse motion within it or vice versa. like if elevator is moving from 1st floor to 2nd floor and in between Ground Floor signal comes.