I'm trying to implement keyboard text input for chatting in game, typing character name, save file name, etc.
I was messing around with KeyboardState trying to get the newest added symbol to translate in into character that I could add to my input string, but it seems to sort the array of currently pressed keys in some order (I bet it's sorted by keycode), so I can't easily find which key was pressed last to add it to input string.
Is there an easy way to detect the last pressed text key (including situations when multiple keys are pressed, because people do that sometimes), or is it easier to make use of some existing solutions?
I'm studying C# and XNA, so I'd like to be able to do it myself, but in the end I want my game to work.