途端 とたん
totan

Noun
Adverb

1. just (now, at the moment, etc.); just as; in the act of; as soon as; at the moment that

これをきいたとたん、彼 かれ さおになった。
koreo kiita totan karewa massaoni natta.
On hearing this, he turned pale.