something like this?
code:
onClipEvent (keyDown) {
// Retrieve the ASCII value of the last key pressed and convert it to a character
lastKeyPressed = String.fromCharCode(Key.getAscii());
trace("You pressed the '" + lastKeyPressed + "' key.");
_root.keyPressed.theLetter = lastKeyPressed;
_root.keyPressed.gotoAndPlay(2);
//
x++;
//attempt to duplicate the MC and move it to the right.
_root.keyPressed.duplicateMovieClip("dupMC" + x, x);
_root["dupMC" + x]._x = x * 5;
//
_root["dupMC" + x].theLetter = lastKeyPressed;
_root["dupMC" + x].gotoAndPlay(2);
}