[Solved] C# See If A Certain Key is Entered

Since you have read the user input into the variable input, check its content string input = Console.ReadLine().ToUpper(); switch (input) { case “S”: //TODO: Shake the Ball break; case “A”: //TODO: Ask a question break; case “G”: //TODO: Get the answer break; case “E”: //TODO: Exit the game break; default: // Unknown input break; } … Read more