Best way to make typing game

I checked UMG/Slate Multiline Editable Text Box, it is nice, but I would like to override/handle Enter key presses on my own, for example when user hits Enter I don’t want to add “\n” to textbox ( I seen that function onKeyChar which can be overriden, but I was unable to do it and it seems like there is no much info about it.

I tried Single line Text Box, but it doesn’t have justification, I would prefer it with justification if possible, also it seems like it handles Enter key press differently

I read somewhere(maybe here too) about way to handle each key and use DrawText, like people did before Slate/UMG, but don’t like it much

What do you recommend? If with C++ it’s much easier to do, please let me know how it can be done there if possible.

Thanks.

I tried Single line Text Box, but it doesn’t have justification, I would prefer it with justification if possible, also it seems like it handles Enter key press differently

I used this, it has option to keep focus on commit (in my case when user hits enter)

To set focus for it I used Set Input Game with UI Mode, something like that

But I haven’t figured out what to do, when user clicks somewhere with mouse, focus gets away from text box

Of course I can use Event Tick and set Input Game with UI Mode on each tick, but I doubt that it’s a good idea, of course for now, it might work fine.