He'd been listening outside the door of the flat, but couldn't hear anything.
He heard everything while standing outside the apartment door. 
He didn't hear everything while standing outside the apartment door.