protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { var hasCtrl = keyData.AnyKey(Keys.Control); var hasShift = keyData.AnyKey(Keys.Shift); var sleepTimer = hasCtrl ? 0 : hasShift ? 100 : 50; if (keyData.AnyKey(Keys.Oemplus, Keys.Add)) { image.aZoom((decimal)0.1 * zoom); } else if (keyData.AnyKey(Keys.OemMinus, Keys.Subtract)) { image.aZoom(-(decimal)0.1 * zoom); } else if (keyData.AnyKey(Keys.Up)) { image.aZoom(baseZoom - zoom); } else if (keyData.AnyKey(Keys.Left)) { backward(sleepTimer); } else if (keyData.AnyKey(Keys.Right)) { forward(sleepTimer); } else if (keyData.AnyKey(Keys.Delete)) { delete(); } else if (keyData.AnyKey(Keys.F11)) { fullscreen(); } else if (keyData.AnyKey(Keys.Escape)) { tb_zoom.Visible = false; } return(base.ProcessCmdKey(ref msg, keyData)); }