Already answered by
Tadit Dash, but here is my code. Don't ask me why it also works with checked or unchecked state :)
private bool checkBoxKeyFlag;
private void checkBox1_KeyDown(object sender, KeyEventArgs e)
{
this.checkBoxKeyFlag = true;
this.checkBox1.Checked = false;
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (this.checkBoxKeyFlag)
{
this.checkBox1.Checked = false;
this.checkBoxKeyFlag = false;
}
}