How to creata a text input field in BGE
This requires you to be comfortable with Python, but you could use the BGUI: https://github.com/Moguri/bgui

There is an example file that comes with the download that can help you get started.