In the last hours I had a bug where it wouldn't rest my jump and I would stay on ground and then implemented infinite jumping.