Keyboard event not working

hi, i’m a beginner in unreal engine and i have recently started to learn the blueprints.
i have a problem and that is the keyboard function is not working for me.
i saw some solutions in the forum but as i said i’m actually a newbie,i didn’t understand anything.
i would appreciate if you can help me with this.

and also i’m using UE 5, i have tested this script in UE 4.26.2,it didn’t print anything at all on the screen, i don’t know why!

3 Likes

You have to enable input on the blueprint, like this:

24 Likes

Hi!

First - you need to tell us more. Is it level blueprint? Is it actor blueprint?

Second - try to “Print String” right after the “F” key event to check if the press “F” even came.

Third - you might need to click anywhere on screen when game is running. UE4 sometimes doesn’t get focus when started. This might be the issue.

Fourth - switching boolean this way is more readable :wink:

340342-adnotacja-2021-05-31-214329.png

3 Likes

oh thank you very much.
it was an actor.
actually i don’t really know the difference between these different blueprint types :smiley:

the problem solved with this ‘Auto Receive Input’, it was disabled.
thanks a million.

this script is much cleaner than the one i did.

Third option worked for me, thanks a lot

1 Like