Have you tried “Is Falling” ?
This means if your player is in the air.
You can unable all action while “Is Falling” is false.