How do I map a key that does two functions for tap and hold?

Hi. Just started trying out unreal engine. I want to make a key that makes the character run while being pressed, and leap forward when tapped.


What has gone wrong in this blueprint?
It should take the keypress to initiate running, and start counting how long the key is being pressed. On release, the blueprint should either make the character stop running when 0.175 seconds have passed while being pressed, or leap forward if it’s been released before 0.175 seconds.

…That’s my intended logic, but the character stops running AND leaps forward after 0.175 secs. How do I implement tap or hold key???

GetInputKeyTimeDown always returns zero. I would use the enhanced input system, or a timeline if I just wanted to do it quickly.