How to map 2 actions to 1 button?

Like touchscreen, programmers have to program mutliple functions to a single press; they do this by determining if the press is quick or held.

How do I do the same in UE4 blueprints? I just need a “tap” to jump, and a “hold” for crouch. Button I’m using is space bar.

I tried mapping it out myself but could not get the timing right… or maybe I need boolean?

Like this: