how to make the action happen when a certain key is pressed? can this be done with Console.ReadKey();
The code does not work! this is just a schematic image so you can understand what I mean
static void Play()
{
if (Console.ReadKey() == 'q')
{
Console.Beep(523, 500);
}