Despite these preventive measures, there may still be a chance that you get locked out. Accidents do happen, and the first thing you need to do when this happens is to keep calm and not panic.