Create Key struct to check key pressed

Hello everyone, I’m new to Unreal and to blueprints, but not new to programming and game development. I have an array of strings and I want to check if the corrispondent keys are pressed. This list change from time to time during the game so I cannot map them in the editor.

What I would like to do is:

String[] array = [B,N,M]

Foreach key in array
getKeyDown(key)

I know that I can check if a key is pressed with IsInputKeyDown, but there is a way to create a Key Struct from a String to use in the node?

Thank you in advance!

69347-2015-12-04+21_19_02-unreal_nlp+-+unreal+editor.png

I think you’d have to create it yourself to convert the strings you plan on using to the Key struct.

Thank you! That solved the problem :slight_smile: I was too much into searching an in engine solution that I didn’t think to do the stuff in the old manner!