In C# use a Short Cut Key
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == (Keys.Alt | Keys.M))
this.WindowState = FormWindowState.Minimized;
}
Else if()
return base.ProcessCmdKey(ref msg, keyData);