GetSelectedKeyID() of FBlackboardKeySelector returns wrong KeyID

Not sure whats wrong here but i’m trying to get Key ID of BlackboardKeySelector using GetSelectedKeyID() in Decorators or Tasks to get value of BlackBoard variable but it always return 255

header file:

public:
	UPROPERTY(EditAnywhere)
		FBlackboardKeySelector BoolInput;

cpp file:

bool cond = BBComp->GetValue<UBlackboardKeyType_Bool>(BoolInput.GetSelectedKeyID());
    
   GEngine->AddOnScreenDebugMessage(-1, 10, FColor::Cyan, FString::FromInt(BoolInput.GetSelectedKeyID()));

.