How can I make the character move while jumping

This question was solved and I’ve removed it.

@jnapier Apparently your character can only jump or change direction while touching the ground.
if you want to change direction of movement while in the air, put all the codes related to movement outside the if condition.