Using the command window and timer is a good idea. But it is much easier, if you do not use the command window, but a GUI with a timer. Then you do not have to emulate a pressed Enter key, but can request the current state of an edit field. Note that the 'String' property is not updated during the editing, but only if Enter was pressed or another GUI element is selected.
Is a GUI a working alternative for you?