I will give an example
you take the key to room B2 and open it, then you lock the room, don't open things inside the room and hide inside the closet, she'll even go to the window to see you, if she doesn't see you she'll continue her journey