For your example use (roughly) the following :
void OnKeyDown(object sender, EventArgs e)
{
windowForm1 TheForm = new windowForm1();
TheForm.Show();
}
This is all you should have to do to open a new form from any event. Be very careful though - this code will produce a massive number of windows open if a user just holds down the enter key say... I would suggest better code would be:
windowForm1 TheForm = new windowForm1();
bool TheForm_Shown = false;
void OnKeyDown(object sender, EventArgs e)
{
if(TheForm_Shown)
{
TheForm.Close();
}
TheForm_Shown = true;
TheForm.Show();
}
Hope this helps,
Ed