How can I average out a certain range of keyframes?
Go to dope sheet

Click on the first key frame so that the cusroser is set to that
place

select the keyframes that needs to be evenly space out, can use "B"
to drag select area or any other selection

Press "S" to scale 

and input number "5" if you wish to evenly space out all
keys with interval of 5 frames