I am not too sure if I had worded my question appropriately, but essentially, I have an energy bar that drains when I am holding either the left or the right shift keys. When either shift key is being held, my player is running rather than walking/trotting.
What I am looking to have happen is when the energy bar value reaches zero; the shift keys are not active until the player’s energy regenerates.
If I cannot disable a key, like I am thinking, is there a way I can temporarily change the running speed of my player.