Attach sound/Flash Talker

hi there.

im making a thing which ‘says’ what you are typing (no, there is no textbox)
anyway, im having some trouble with the sounds,if i have the sound in a movieclip and tell it to play the next frame when a key is pressed it wont play one sound right after the other and the only code i know to attach a sound is this;

A = new Sound();
A.attachSound(“A - Test”);
button01.onRelease = function() {

which quite obviously does not involve keypress actions, any ideas?