You will need to use actionscript for this. Add a new layer to your .fla file. Then you will add a function to the first frame that says something like
me.onKeyPress playSound('sound.ext');
My code is wrong because I don't know the code for actionscript well, but I know this is the process you will use.