How do I create a TArray of InputKey Selector References?

I want to create a c++ function that has an Array of Input Key Selector References as one of its arguments.

As fas as I can understand the documentation, it should look like this

#include "Widgets/Input/SInputKeySelector.h"

class SCompoundWidget;

UFUNCTION(BlueprintCallable, Category = "CategoryName")
void FunctionName(TArray<SInputKeySelector> ArrayName);

The compiler however does not accept this definition or any other that I tried to use.
Does anyone know what the error is?

Remove the UFUNCTION macro and it should build.

I don’t think SInputKeySelector is a blueprint accessible type.

If it still does not build, send the log.