We can use questions with the past continuos to ask about things that were happening at a specific moment in the past.
Past continuos structure:
Wh + Past Verb Be + subject + Verb ing + Complement + ?
For example:
What were you doing when you cut yourself?