Emulating a keypress

check this:

http://www.arduino.cc/playground/Interfacing/SecondLife