title: (How to read arrow keys) Cheat code in C programming (when inputted from the keyboard)
body: <p>I am making a game in C, and when the user input the Konami code (cheat code), the program should print out the correct answer. 
  (edit #3) found out that my program does not "read" the arrow keys whenever I input it, how do I make it so? pls. see my comment below</p>
  
  <p>Here is my updated code (edit #2):
          //try konami</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  
  main() {
  
      int c;
      char cheat[] = {24,24,25,25,27,26,27,26,98,97}; //thanks to Vicky for clarifying this
      char guess[100];
  
      printf("Enter guess: "); 
      scanf("%c", &amp;guess);
  
      //just checking if the cheat array is right, and yes it is. I'll remove this later
      for ( c = 0; c &lt; 11; c++ ) {
          printf("%c", cheat[c]);
      }
  
  
      //comparison of the guess (input) to the cheat code
      if (strcmp (cheat, guess) == 0  )
         printf("\nYou win!");
      else
         printf("\nLol!");
  
  }
  </code></pre>
  
  <p>Now, my problem is it always prints Lol! even though I input the cheat code correctly . . .</p>
  
  <p>note: this is for my intro class in programming (my first time in c too). lessons covered so far are basics, loops, arrays and strings (no functions yet but i understood that now, no structures and further pls. thank you :)</p>