I made a 3rd key for my 2007 mazda 5...
I bought a transmitter fob off ebay (~$30). I programmed it using instructions in the PDF file. You can program up to 3 fobs for your car.
-Note that although the PDF specifies it is only for 2006 vehicles below a certain VIN, it worked fine on my 2007...