Stunning the player when they hit the ground?

I want to be able have a duration after my player character hits the ground where they can’t take any action.
How would you do this?

This is done with boolean that comes between the input and the function or change the player state and then reactivate it after a timer.

Thank you!