How to: Use the Same Button with 2 Different Functions?

The Enhanced Input (you’re using a deprecated legacy system) supports this out of the box:

  • tapping the key in under .5s Jumps
  • holding for at least .5s Parkours

The EI is enabled by default these days, consider giving it a go, it dramatically simplifies certain behaviours:

Or have a look at any UE5 template, they’re all using it.