Phrase something that seems to work or move separately from what its owner wants
has a mind of its own
In the first few months of life, a baby elephant's wriggling trunk has a mind of its own.