title: C++, Up arrow detected as both up and right
body: <p>I defined the four arrow keys as such-</p>
  
  <pre><code>#define UP_ARROW    72
  #define LEFT_ARROW  75
  #define DOWN_ARROW  80
  #define RIGHT_ARROW 77
  </code></pre>
  
  <p>And the keys are being checked using _getch(), as such</p>
  
  <pre><code>char key = _getch();
  if (key == 0 || key == -32)
  {
      key = _getch();
      switch (key)
      {
      case UP_ARROW:
          //These are functions not relevant to the problem
          //up(1);
      case DOWN_ARROW:
          //down(1);
      case LEFT_ARROW:
          //left(1);
      case RIGHT_ARROW:
          //right(1);
  
          //Pressing up will print out "test", which should not happen
          printf("test");
      }
  }
  </code></pre>
  
  <p>As commented, pressing up will call anything in the RIGHT_ARROW case. Did I do something wrong?</p>