Help me find a horror short story featuring a guy hiding from something scary

… that I only know about because of a friend’s re-telling, a long time ago, and that I’ve never read myself.

To begin with, I am only reasonably sure it was a short story, but I don’t actually know. The genre was old-fashioned horror but ended unexpectedly funny. Also, this was over 15 years ago, so nothing too recent.

It’s from the pespective of a man who is hiding in a closet or broom cupboard or something like that, because there is something evil afoot. I don’t remember if we ever learned what kind of evil, or if it was kept vague, but the man is getting rather frantic and scared because he is afraid he will be discovered soon.

He is writing everything down as it happens. I think at one point he even mentions that he is having a hard time writing because it is so dark and he doesn’t dare to fetch a light.

Then came one sentence that may or may not have been the punchline, which went something like this:
“If only my typewriter weren’t that loud!”

That really was the one memorable thing about the story, everything else I’m not extremely certain if it really went like that. But maybe someone recognizes the story even with only second-hand info about it?

Isn’t that just a joke? The rest of the story may change each time it’s told.

I really don’t know. It was told to me as something the girl had read, possibly in a collection of short stories. She was notoriously bad at remembering details though, so who knows.

It may have been a more literary version of a joke, even. The rest of the conversation was about creepy stories and horror stories though, along the lines of Patrick McGrath and similar writers.