[間「あいだ」]/[間「あいだ」]に => During A, During A (before A is finished/over) N2
Time, Situation
を[機「き」]に => Use A as an opportunity N1
Time, Situation
を[契機「けいき」] => As a good opportunity A, (do) B N2
Information, Report