Check out example codes for "how to convert a key state to a letter in monogame". It will help you in understanding the concepts better.
Code Example 1
private string text = string.Empty;
protected override void Update(GameTime gameTime)
{
KeyboardState keyboardState = Keyboard.GetState();
Keys[] keys = keyboardState.GetPressedKeys(); // Get an array of all the pressed keys.
if(keys.Length > 0)
{
var keyValue = keys[0].ToString(); // Get the first element of the array and convert it to a string.
text += keyValue; // Add it to text.
}
base.Update(gameTime);
}
Learn ReactJs, React Native from akashmittal.com