Key-switched power works fine in most cases. In some vehicles you can purchase a reverse wire harness that plugs into the factory radio, and provides a remote output even if there's not one in the stock harness. There are also voltage-sensing modules available that will connect to your speaker wire and provide a 12VDC output whenever anything's playing on the speakers.