If statement inside a if statement c# :   This is the code that i have written to print when a user enters a number, when a user press 1, the console prints the alocated if statement thing. How to put work this code? (this is a c# console application)

  int keypress; // Variable to hold number
    
                    ConsoleKeyInfo UserInput = Console.ReadKey(); // Get user input
    
                    // We check input for a Digit
                    if (char.IsDigit(UserInput.KeyChar))
                    {
                        keypress = int.Parse(UserInput.KeyChar.ToString()); // use Parse if it's a Digit
    
                        if (keypress = 1)
                        {
                            Console.WriteLine("6$ Cheese added to your cart");
    
                        }
                        else (keypress = 2){
    
                            Console.WriteLine("2$ Bread added to your cart");
                        }
                         else (keypress = 3){
    
                            Console.WriteLine("1$ cookie added to your cart");
                        }
    
                    }
    
                    else
                    {
                        keypress = -1;  // Else we assign a default value
                        Console.WriteLine("Number you entered isn't in the grocery list, please retry");
                    }