I am trying to attach some events to my blueprint , but Unreal Engine doesn 't see my keyboard events.I think I have made everything properly , code is compiled properly , but input component doesn 't exist .
Try overriding the method SetupPlayerInputComponent from the Pawn class.
There you will get passed an InputComponent.
So for example (in the cpp):
void ATestPawn::SetupPlayerInputComponent(UInputComponent* input)
{
// bind movement axes
input->BindAxis(TEXT("Forward"), this, &ATestPawn::OnMoveForward);
....
}
Or override the SetupInputComponent of the player controller.
Make sure to define the overrides in the header files.