How can I do to activate users inputs?

I need users can input their user name and password and I need to save it in a String
I need a “Line edit” or “textbox” (Like in WindowsForms) in XNA.
How can I do it?
The another idea is to program it and simulate it, but it doesn’t work well, fast write, keyboard lenguaje, and “CAPS LOCK” have problems.
Thanks.

So you have 2 options, either use an existing gui toolkit for it like: http://emptykeys.com/ or https://xnagui.codeplex.com/ , or write it manually.