Why not use another variable and simply increase it each tick by a value times delta time (so different fps won’t affect this effect).
You can clamp the value right before the usage which would set the limits you want. Whenever you press the key reset that new variable and you’re good to go.
Cheers,
Erasio