The crouch function works as follows: UCharacterMovementComponent::Crouch | Unreal Engine 5.2 Documentation