Are you asking how to detect a text change once a process that loaded field data has been made, and new, unsaved data is being entered? You mentioned new uncommitted changes, and I am not sure what you have in mind. This means that using a closeField handler will not indicate "uncommitted changes if they type into that field"
If so, however, I would set a custom property of the field upon writing to the database, and put a simple handler in the field script
on textChanged
if me <> the lastText of me then set the foreColor of me to "blue"
end textChanged
The property is named "the lastText", and is set by whatever handler saves to the database.
set the lastText of field "yourField" to field "yourField"
The color will change to blue if anything is edited within that field. Of course, the saving handler ought as well to set the color back to black.