单项选择题

I was just (falling) (sleep) last night (when) I heard a knock (at) the door.

A.falling
B.sleep
C.when
D.at