Basically, here’s what I’m going for:
When the player holds down the jump key, the jump will sort of “charge up” from a minimum jump velocity to a maximum jump velocity. The player will jump when the jump key is released or the maximum jump velocity is reached.
For my purposes, it will probably be a small amount like 0.0 to 1.0 seconds.
Where I’m stuck is: I need to figure out how to start counting how much time has passed once I hold down the key; and how to get the elapsed time on key release.