Expresses the time when something happens, 'when', 'at the time'.
Long explanation:
The ~とき grammar point is used to express the time when something happens or happened. It can be translated as 'when' or 'at the time' in English. The formation differs depending on whether it is used with a verb, い-adjective, な-adjective, or noun.