Check Keyboard Events in code

right now i use:

Contoller::BeginPlay()
{
PrimaryActorTick.bCanEverTick = true;
EnableInput(this);
}

Controller::Tick()
{

if (IsInputKeyDown(EKeys::A))
.
.
or
,
,
if (WasInputKeyJustPressed(EKeys::LeftMouseButton))

}

The Tick() works, but the conditions not