Curse of the Boggin: The Library Book 1 (Paperback) D. J. MacHale
There's a place beyond this world, beyond the land of the living, where ghosts go to write their unfinished stories - stories that ended too soon. It's a place for unexplained phenomena: mysteries that have never been solved, spirits that have never been laid to rest. And there's only one way in or out.
It's called the Library, and you can get there with a special key. But beware! Don't start a story you can't finish. Because in this library, the stories you can't finish just might finish you.