I can't currently work out an easy way, but it's certainly possible.
The slow way would be to add a keyboard event to every key on the keyboard. Each one should have a script on it, which would add that character to a string.
That string would then be what you typed in, in the sequence you typed it.
I'm trying to figure an easy way, to avoid having to do this for every key.
For the 'each key' thing, simply add a Keyboard action. Add an event to that, so that on 'KeyDown' for the button 'A', it runs a script that says 'MyDataString = MyDataString +"A"' . Repeat for all 17 keys.
A possible improvement would be to use the method in the attached movie, which only works in Flash 9, but uses a more structured method, and doesn't need each key individually scripting. It detects any button press, then finds the character code that relates to that button, and adds that character to the main data string. It must be exported to work properly.