added method to prevent character from jumpig while already in the air