WASD or arrow keys to walk Space to sprint ( uses stamina ) just a test
Note: space to sprint is not a toggle, you have to hold it in order to keep sprinting. BUG: you can lose stamina even while not moving if you hold space. If you run out of stamina then you can't run until you have at least one stamina. Not sprinting will regain stamina at a medium pace. Staying still with regain stamina at a fast pace. If you hold space while having zero stamina your stamina won't go up and you won't be sprinting.