SetupInputComponent and PostIntializeComponents never called

I have the following code

void MyController::SetupInputComponent()
{
	// GEngine defined in Engine.h as a global pointer
	GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Green, TEXT("Setup"));

	Super::SetupInputComponent();
}


void MyController::PostInitializeComponents()
{
	// GEngine defined in Engine.h as a global pointer
	GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Green, TEXT("Post Init"));

	Super::PostInitializeComponents();
}

and in my AGameMode I have

PlayerControllerClass = MyController::StaticClass();

So why isn’t the InputComponent never set up?