added a delay to the textfield so it only pumps one event to the Brain; code cleanup