title: exit with escape key in for loop
body: <p>I have this loop and  is working :</p>
  
  <pre><code>  for (int x = 0; x &lt; nombres.Length; x++)
              {
                  ValidXX.Text = x.ToString(); ValidXY.Text = nombres.Length.ToString();
  
                  origen = nombres[x];
                  cambia = nombres[x];
                  pedrito = control.ValidarDocumentoXML(cambia);
                  if (pedrito == true)
                  { }
                  else
                    /*  File.Move (origen , destino );*/
                  try
                  { }
                  catch(IOException iox)
                  {  MessageBox.Show(iox.Message); }
                  { /* corrupto[x] = cambia; */ MessageBox.Show("malo" + cambia); }
              } 
  </code></pre>
  
  <p>I want o break this loop with the escape key , i have try with this :</p>
  
  <pre><code>    private void Importar2_KeyDown(object sender, KeyEventArgs e)
      {
          if (e.KeyCode == Keys.Escape) { }   
      }
  </code></pre>
  
  <p>but i can not write this key_down  into the for loop.</p>