If you want to detect when the user hits the Enter key when he is done with string edition, use its key focus property.
Set the string to "Limit to Single Line". When the user is currently editing the string, the key focus is True. After Enter is hit, the keyfocus toggles to False. You just have to detect this True/False transition of the property.