     inputCommand = Serial.read();
     Serial.println(inputCommand);
     switch (inputCommand) {
-      case 48:
+      case 117:
       Serial.write('0');
       SendOnCode();
       break;
-      case 49:
+      case 118:
+      Serial.write('0');
+      SendOnCode();
+      break;
+      case 119:
       Serial.write('1');
       SendChannelUpCode();
       break;
-      case 50:
+      case 120:
       Serial.write('2');
       SendChannelDownCode();
       break;
-      case 51:
+      case 121:
       Serial.write('3');
       SendVolUpCode();
       break;
-      case 52:
+      case 122:
       Serial.write('4');
       SendVolDownCode();
       break;
-      case 53:
+      case 123:
       Serial.write('5');
       SendChannel59Code();
       break;
     }
-    
+
  // delay(5000);  // wait twenty seconds (10 seconds * 1000 milliseconds)
 }
 }

// for a certain # of microseconds. We'll use this whenever we need to send codes
void pulseIR(long microsecs) {
  // we'll count down from the number of microseconds we are told to wait
  
  cli();  // this turns off any background interrupts
  
  while (microsecs > 0) {
    // 38 kHz is about 13 microseconds high and 13 microseconds low
   digitalWrite(IRledPin, HIGH);  // this takes about 3 microseconds to happen
   delayMicroseconds(10);         // hang out for 10 microseconds
   digitalWrite(IRledPin, LOW);   // this also takes about 3 microseconds
   delayMicroseconds(10);         // hang out for 10 microseconds
   
   // so 26 microseconds altogether
   microsecs -= 26;
 }

void setup()   {                
  // initialize the IR digital pin as an output:
  pinMode(IRledPin, OUTPUT);      

  Serial.begin(9600);
}

