I was studying past tenses and this sentence showed up,
when I....... (walk),
I suddenly realized
that I had left my keys at home
Now the answer was walked, but it didn't make since to me, I thought that the verb walk will imply the continuity in this context, so is it right or should we always use simple tenses after when?