Isopropyl alcohol is the preferred electronics cleaner. However, since most hand sanitizer is made from ethyl alcohol, it’s unlikely to cause any damage to your controller. In any event, since the controller is already not working, you’ve got nothing to lose by using isopropyl alcohol or sanitizer to attempt to restore its functionality.