Breaking and entering is a felony and regardless whether the thug used a pass key or broke a window to gain access, criminal trespass and felony B&E ocurred the moment he stepped over the threshold. So the Castle Doctrine ALWAYS applies in the event of a B&E and Felonious Criminal Trespass.
Good shooting, Grandma. Civilization thank you.