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

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