Interruptable input delay?

I want to have a delay for an input, but the player has to keep the input held down for the duration of the delay, and the action doesn’t fire if the input stops before the delay is finished.
For example, I want my character to crouch, but I want to make it difficult to crouch accidentally. So I want the player to press the crouch button, and keep it held for a 5th of a second, and if the player stops pushing the crouch button before the 5th of a second is up, the crouch doesn’t happen. Is such a thing possible? And how would one go about pulling it off?

Apologies if this question is answered elsewhere.

There is a Node called Get Input Key Time Down that is part of the Player Controller that essentially holds the information of how long a key has been pressed. That you could use to handle such things.