Well, my rough idea is that the mod will change car's wheel datablock for the drifting one when the keybind is pressed, and then if the lateral velocity is smaller than $DefinedSomewhereInTheCarsDatablock MPH the wheel will be changed to non-drifting one.
I haven't really played around with drifting vehicles so I'm not sure which parameter change causes the car to drift.