Thanks for your reply!
So, It will not like we use "scanf" in C , we can have the program hold, wait for our input,
then tab return, the function will scan what we input and take it as variable?
I cannot speak for what you do in C. What you do in Actionscript depends on what version you are using, but for any version it boils down to having a listener assigned for keyboard input when you want keyboard input to be monitored. In AS3 you would assign a listener for a KeyboardEvent and then have the event handler function determine which key was used and add it to the string. Here is a very basic implementation to demonstrate (be sure to disable keyboard shortcuts in the player when you test it in Flash using Control -> Disable Keyboard Shortcuts).
var str:String = "";
str += String.fromCharCode(evt.charCode);
Europe, Middle East and Africa