private void editor_KeyDown(object sender, KeyEventArgs e) { Form editor = (Form)sender; if (e.KeyData == Keys.F3) { Do.CaptureScreens(editor); } }