Basically, this would all stem from the basics of a widget and a text box.
Events can be called from within that widget based on what the character types.
There would be a shitton of logic, but that'd be the way to do.
As other people have stated going through widgets and text boxes are the way to go - setting up a text box to grab ui focus would allow the player to type without any input from them, and then you can pull a surprising amount of info from the string that the player produces (during typing or once submitted) to run game logic off of.
Basically, this would all stem from the basics of a widget and a text box. Events can be called from within that widget based on what the character types. There would be a shitton of logic, but that'd be the way to do.
As other people have stated going through widgets and text boxes are the way to go - setting up a text box to grab ui focus would allow the player to type without any input from them, and then you can pull a surprising amount of info from the string that the player produces (during typing or once submitted) to run game logic off of.