Modern cars often have an electrical switch associated with the key lock.
I do not know if it is embedded within the lock.
If so, then graphite, being conductive, can short the contacts.
I have read about this issue in various places, and stopped using graphite.
Now I don’t know what to use either, so it will be interesting to see the recommendations!