If the car loses power entirely then it gives you a few seconds warning in which you may or may not be able to cross to the shoulder before the car coasts to a stop. In this scenario the braking is not "hard", but obviously there is no real way to recover and you'll need to get towed.
I have not experienced any scenario where the car does not respond to steering or acceleration commands when it was physically able to do so.