private void ImageSelection_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { EndSelection(); } }