Stamina?

I have an Idea on how to do the stamina, but what I wanted to know is, what hooks/functions would I use to determine whether sprint is enabled.

I know most of the functions, was just curious which one is the course of action. I would think keydown because it keeps return a value, but it doesn’t have a hook, which is keypress. Or maybe you could do like a hybrid of them?

Where it is like,

your function uses keydown, but the hook to call the function is keypress?

-snip-