Okay - so why was the door unlocked? Who unlocked it?
Pure speculation here, but... Apparently (but who knows, what we’re being told seems to change quickly) grandma worked as an aide at the school. After shooting her, the murderer takes her keys. After all, he took her truck. Using her keys, he unlocks the door. Same keys might have gotten him into the classrooms where he killed the kids and the teachers.