Detecting if a key's value is changed in a table

I’ve tried this but it isn’t good in this case as my module is related to ProfileService.