Timeout with ability

Godot Version

4

Question

How do I make a stop time ability but after a second or 2 time unpauses and theirs a cooldown. But you can unpause time by lifting the key and there would still be a cooldown.