If in case of the pedal sticks, you should shift into neutral then find the right place to pull over and stop your car. When something is wrong with your car, you should not try to bring it out already as you may get into an accident or you might cause an accident that would involve other people.
You can double check your car and find the reason why the pedal has gotten stuck. You can also call a mechanic at the soonest possible time so that your issue can immediately be resolved. The moment that your car is fixed, you can bring it on the road again.