title: How can i get the Ctrl+C as input in console
body: <p>I want to use ctrl+c as input in console. I can <strong>disable</strong> the ctrl+c to terminate console. But i cannot use the ctrl+c to get input. how can i get the ctrl+c as input????</p>
  
  <pre><code>Console.CancelKeyPress += (object sender, ConsoleCancelEventArgs e) =&gt;
  {
       var isctrlc = e.SpecialKey == ConsoleSpecialKey.ControlC;
       if (isctrlc)
       {
       e.Cancel = true;
       }
  };
  
  k = Console.ReadKey(true);
  if((k.Modifiers &amp; ConsoleModifiers.Control) != 0)
  {
     if((k.Key &amp; ConsoleKey.C)!=0)
     {
         break;
     }
  }
  </code></pre>