Actress Jennifer Garner accidentally locked her keys in her Lexus SUV while shopping this week in Brentwood, Calif., with daughter Violet.

The real problem for Garner was when she realized the two-year-old was in the car, holding the only key, The Daily Mail reported Friday.

Panic set in, but not for long, as Violet was able to eventually follow Garner’s instructions on how to push the button to open the door, The Mail reported.

Violet emerged victorious, clutching the key in her hand.

The 36-year-old, who is married to fellow Hollywood star Ben Affleck, said recently she would like to extend her family, but not yet.

When asked when she would have more children, Garner said, “Sometime. I don’t know. I have to think about that one.”

Garner is currently working on the comedy “This Side of Truth” with director Ricky Gervais, The Mail reported.

Click here to read more on this story from The Daily Mail.