How can i handl input and show to screen?

i want a simple text editor inside a ue4 game like a hud-chat textfield.So it will be like a terminal-hud that i will type some words , and i want to activate it by pressing a key.The problem is i dont know how to make it accept strings that i type and show them in screen.Any help appreciated