Function multiple pointer-return values

you have to return the actor by pointer not reference

UFUNCTION(BlueprintCallable, meta = (DynamicOutputParam="SomeActor" ))
 bool Check(EKeyEnum KeyType, AActor* SomeActor);