1. Make sure you have a working key fob (the one that you want to reset).
2. Insert the working key fob into the ignition and turn it to the "ON" position (but don't start the engine).
3. Locate the key synchronization button. On some BMW Z3 models, this button is located in the center console or near the gear shift.
4. Press and hold the key synchronization button for a few seconds (usually around 10 seconds). The hazard lights should start blinking.
5. Release the key synchronization button and quickly press any button on the key fob that you want to reset.
6. The hazard lights will flash again, indicating that the key fob has been reset.
Note: The exact procedure for resetting the key fob may vary depending on the specific model and year of the BMW Z3, so it's a good idea to refer to the vehicle owner's manual for the exact instructions applicable to your car.