Use the keyboard() script to type text from your keyboard to the screen.
It can be a little difficult to use the keyboard and get it set up if you want user input from the player, and this package can help.
Comes with multiple scripts and an example, along with the README.
End User Licence Agreement (EULA).