单项选择题

Just as I was leaving the house,it occurred to me that I ()to take my keys.

A.have forgotten
B.had forgotten
C.must have forgotten
D.should have forgotten