Print screen of which key is pressed

Hello. I have a little problem) How can i get pressed key on keyboard and print it on screen?) My solution don’t work) thx.

I create func and get key from key event variable and return value Text. After print text and press any key every tick i have a None value. Help pls.)

110514-2.png

To realize this I use a Widget Blueprint. You add the widget to the viewport and in the widget blueprint on the top of the function tab you can override the on key pressed function and in this function you can then print the key on the screen by using the key event. But what you did in your screenshot is that you just pass a empty key event to the function that cant work!

Can you post a screenshot example how you do this?) thx)

Hello Zi3i,

I saw your thread and thought I would give a quick suggestion. If you would like to get the name of the current key being pressed, you could try using the Any key event node and print that out. I have provided an example below. I hope this information helps.

Example:

Make it great day