You could go into the Input Map and add a new input. When adding the new input, add a key and then, on your keyboard, click left shift and right and that would work.
In the code, you could write code that says this:
# put the input name in quotation marks
if Input.is_action_pressed(""):
# put code here for sprinting
pass