Im trying to create a crash bandicoot spin but how do i make it disabled after a second?

Im making a crash bandicoot game and im currently working on the spin mechanic and the spin works when the key is pressed but the renderer wont disable after the spin so it just keeps spinning! how do i get it to work? This is my script at the moment? Please help!

Script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SpinStopper : MonoBehaviour {

public double timer = 1;
public GameObject SpinCB;
public GameObject RealCB;

void Update()
{
    timer += Time.deltaTime;
    if(timer <= 0)
    {
        timer -= 0.5;
        SpinCB.SetActive(false);
        RealCB.SetActive(true);

    }
}

}

How to count down is just subtract the time each frame took from the duration. Something like this.

     public float timer= 1;
     public GameObject SpinCB;
     public GameObject RealCB;
     void Update()
     {
          timer -= Time.deltaTime;
    
         if(timer <= 0)
         {             
             SpinCB.SetActive(false);
             RealCB.SetActive(true);
         }   
     }

How do i get it to reset when it reaches 0?

This should be in your Update

        if (Input.GetKeyDown(KeyCode.Q))
        {
            SpinButton();
        }