How can I disable rot in the air when jumping?

I’m following the third person from scratch tutorial by Epic Games. I just dont want the point where I can completely rotate the character while in the fall loop animation(in the air.) its just not really reallistic.

I found that this works well to disable rotation when jumping, posted by /u/SwedishBoatlover on Reddit.