How to do double tap?

I wanted to use double tap for run, sprint. I was wondering how I could do this?