title: How can I toggle SetTimer off with a hotkey in AutoHotKey?
body: <p>I am trying to write a script toggling a function.</p>
  
  <p>This is an AutoHotkey 2 Script.</p>
  
  <pre><code>j::
      SetTimer "NewTimer", 1000
      return
  
  k::
      SetTimer "NewTimer", Off
      return
  
  NewTimer() {
      SendInput "NewInput"
  }
  </code></pre>
  
  <p>Pressing J should start the timer, pressing K should stop it.
  Currently, pressing K only stops it as long as I hold the key down.
  How can I stop the timer with the key press?</p>