Animation Curve Problem

I’m trying to change the out tangent of a keyframe and the in of the another one to have a “loose exponential curve” (I don’t want a mathematical exp curve, but something that resemble it)

void Start()
{
    Keyframe key0 = new Keyframe(deadZone,0);
    Keyframe key1 = new Keyframe(20,4);
    AnimationCurve _StepCurve = new AnimationCurve(key0,key1);
    		
    StepCurve.preWrapMode = WrapMode.ClampForever;
    StepCurve.postWrapMode = WrapMode.ClampForever;
    StepCurve.keys[0].outTangent = 0.5f;
    StepCurve.keys[1].inTangent = 0.7f;
``}

But the key0 gives me always a tangent at 0 and the key1 as well.Here what I got when I press play:

[12808-screen+shot+2013-07-04+at+19.44.02.png|12808]

Any guess?

Like this?

using UnityEngine;
using System.Collections;

public class ExampleCS : MonoBehaviour
{
	public AnimationCurve StepCurve;
	void Start()
	{
	    Keyframe key0 = new Keyframe(0.0f, 0.0f, 0.0f, 0.0f);
    	Keyframe key1 = new Keyframe(20.0f, 4.0f, 0.65f, 0.0f);
    	StepCurve = new AnimationCurve(key0,key1);
 
    	StepCurve.preWrapMode = WrapMode.ClampForever;
    	StepCurve.postWrapMode = WrapMode.ClampForever;
	}
}