Thanks for playing my game! One ending happens if you go through the factory in the "nightmare" world. Through the factory, then blink and you can use the bed to go back to sleep. Leaving will activate the other ending.
I'm an idiot... I hadn't even found the factory! I saw it but I hadn't realized there was a way in. This makes much more sense now, thanks! I found it and got both the endings. I really enjoyed it - hopefully I have some good nightmares tonight!