adverb taking the 'to' particle
with a clink; with a click; with a clack
Describes a short, sharp, metallic or hard sound, like a lock engaging, a switch being flipped, or small hard objects hitting each other.
鍵を回すとかちりと音がした。
When I turned the key, it made a click.