单项选择题

Suddenly he heard someone ______ gently on the window.

A.knock
B.knocking
C.knocked
D.to knock