Problems with Console Modifiers ?..

Hello,

 

I am currently making a game, borrowing from a tutorial.

I made exactly this part exactly the same, but it doesn't work as expected for me. The problem comes from the method  Console.ReadKey ();  , more precisely as I try to get  Modifiers  (keys CTRL, ALT, SHIFT).

 I will allow myself to copy the code directly because it is short:

     if (pressedKey.Modifiers == ConsoleModifiers.CTRL && pressedKey.Key == ConsoleKey.C)
     {
     Console.WriteLine ("Your program will be restarted now ..."); 
     Thread.Sleep (3000);
      Main ();
   } 

Did not enter Program into  if  -a, pressing  CTRL + C  . Instead, "Press any key to continue" is displayed, and pressing the button closes the console.

https://topdatingwebsitesx.com/tinychat
https://topdatingwebsitesx.com/flingster
https://chatrandom.live/

 The strange thing is that if you replace  CTRL  with  ALT   everything works fine.

 Could it be due to some setting in my laptop?

 

thanks

alexsunny