I am creating a simple practice program where if I am going to press "Enter" the first message that will be displayed is "Enter a word", then if I press again "Enter", the second message will be "Hello." I am really new to KeyDown events and I'm just starting to learn it bit by bit. Any help is appreciated.

Here's the code that I've tried so far. But the output is not what I wanted to be.

```
private void textBox1_KeyDown(object sender, KeyEventArgs e)
    {
        if (e.KeyCode == Keys.Enter)
        {
            if (textBox1.Text == "1")
            {
                MessageBox.Show("Enter a word");

            }

            else if (textBox1.Text == "1")
            {
                MessageBox.Show("Hello");
            }
        }
    }

```