In my interpretation, ‘the one inside the box is you’ is more metaphorical, it means that when you set the box on fire, you also (I guess accidentally or because it’s a horror movie or because the doll made it happen or because that’s what fire does, don’t light fires inside, kids!) set the house on fire (so you are also in a flaming box), and you are supernaturally and inextricably linked with the doll (which is why someone carved your name into the tarnished silver key.)