Yes, 2010 Ranger with any engine or trim has PATS, passive anti-theft system, so uses "transponder" keys
If you have 2 working keys, and one is not a Clone of the other, then you can ADD a new PATS yourself
Have a locksmith sell you a PATS key and cut it to fit ignition using one of your keys
**You must have two original keys to perform this procedure. If you only have one key, you WILL have to take it to the dealer to get it programmed**
1. Insert and existing (working) key into the ignition cylinder.
2. Turn the ignition cylinder ON (RUN) and back to OFF. Ignition should stay on for at least ONE SECOND.
3. Remove the existing key and, within TEN seconds, insert a second working key and turn it to ON (RUN) and the back OFF. Ignition must be in ON for at least ONE second, but no more than TEN seconds. Remove the key.
4. Insert the new key before TWENTY seconds have elapsed and turn it to ON (RUN). Leave it the ON position for at least ONE second and turn back to OFF.
5. The security light will light up for THREE seconds to indicate that the new key has been successfully programmed.
6. To program additional keys, repeat steps 1 through 5
Wait at least 1 minute before starting and driving vehicle
A locksmith can Clone a working key
Take working key to locksmith, he will READ the transponders Number
He will then WRITE that Number to another transponder key, a blank one
Then cut the key for your lock
PATS doesn't know there are two keys with the same Number, it just reads the Number and compares it to its Programmed key Number list, if a match is found then engine can be started
So its just ONE key as far as PATS is concerned