Check out example codes for "c# how to get key input without block". It will help you in understanding the concepts better.

Code Example 1

static void Main(string[] args)
        
        {
            while(true)
            {
                Console.WriteLine(DateTime.Now.ToString("HH:mm:ss"));
                if(Console.KeyAvailable)
                {
                    ConsoleKeyInfo key = Console.ReadKey();
                    Console.WriteLine("Read key: "+key.KeyChar);
                }
                Thread.Sleep(500);
            }
        }

Learn ReactJs, React Native from akashmittal.com