Here is a video on the whole process. This is for a truck but it will basically be the same for your car. You will have to reset the security system which this covers as well.
Repair Safety Notice: This information is for general instructional purposes only. Vehicle repair can be dangerous. Verify all information, follow manufacturer service procedures, use proper tools and safety equipment, and consult a qualified repair shop when needed.