Controlling 4 Servos Using Keyboard Commands - Mega 2560 !HELP PLEASE!

I have an Arduino Mega 2560 and what I want to accomplish is to move four CR servos by simply pressing a key on my keyboard. Is this possible? Any Help?

Example. I have CR Servo 1 and I want it to rotate for 5seconds by pressing A. I press A and it would do so. I have CR Servo 2 and I want it to rotate for 6seconds by pressing B. I press B and it would do so.

Google MaxMsp. I'm not sure, but it might be what you're looking for.

Is it not possible to do it with the Arduino IDE?

Zoomkat will be along shortly

I have an Arduino Mega 2560 and what I want to accomplish is to move four CR servos by simply pressing a key on my keyboard. Is this possible? Any Help?

How is your keyboard connected to your arduino? Below is some simple test code for moving a servo based on the touching of two wires much like a keys/buttons.

//zoomkat servo button test 12-29-2011

#include <Servo.h>
int button1 = 4; //button pin, connect to ground to move servo
int press1 = 0;
int button2 = 5; //button pin, connect to ground to move servo
int press2 = 0;
Servo servo1;

void setup()
{
  pinMode(button1, INPUT);
  pinMode(button2, INPUT);
  servo1.attach(7);
  digitalWrite(4, HIGH); //enable pullups to make pin high
  digitalWrite(5, HIGH); //enable pullups to make pin high
}

void loop()
{
  press1 = digitalRead(button1);
  if (press1 == LOW)
  {
    servo1.write(170);
  }    
  
  press2 = digitalRead(button2);
  if (press2 == LOW)
  {
    servo1.write(10);
  }
  
  /*else {
    servo1.write(90);
  }*/
}