The door will automatically close after you and lock if you don't have your keys with you. Additionally, there is a chance that if your child sees you go and locks the door behind you, they won't be able to let you back in. The only option left to you if you get locked out of your house could be to call a locksmith for help. By conducting a web search for the top lockout service nearby, you can get in touch with them.