It's not that difficult when you understand the mechanics of the puppet boy, when he chases you just run back to the nearest locker and hide, he'll immediately despawn. you only have to do this twice. also it's pretty obvious but if you didn't know, the lines and symbols on the ground before you pull the lever are the walls and locations of the maze/key/exit. so it's all about remembering which directions lead where.