Dynamic text box

Is there a way to get ascii values from a dynamic text box?? I know you can use a key Listener for an input box, but what about dynamic??

Thanks