Why blueprint does not work?

So i made a blueprint class which should turn on a light when pressing F but it doesn’t work. Could anyone tell me why?

Actors do not process input by default, and rightly so - input should be in the Player Controller or the Pawn. If you must have input in a regular actor, you can Enable Auto Receive Input in its Class Default.

Also, input is Consumed by default, meaning that only one F from a single source can be processed. If you place 5 actors with F-key, only one of them will work. Input consumption can be disabled by selecting the F node and unticking Consume Input.

None of the above are recommended; that’s unless you’re just messing about with the editor to figure things out or are designing some truly specific gameplay scenario that relies on key presses.