Express the moment something happens; 'as soon as', 'just when'.
Long explanation:
The ~たとたん grammar point is used to express that an action or event occurred at the same moment as another action or event. It can be translated as 'as soon as' or 'just when' in English. This grammar construction requires using the past tense form of a verb.