wǒ dào mén kǒu shí cái fā jué wàng le dài yào shi我到门口时,才发觉忘了带钥匙。It was only when I got to the door that I realized I had forgotten my keys.