[solved] Trying to understand easing

I also understand that you’re moving 10% of the way you need to go each frame and all.
But, I’m having kinda a brain-fart, and I can’t figure out why this isn’t working:

targetX = position.x;
if(Keyboard.isKeyDown(Keyboard.KEY_D)) targetX += 10f;
x += (targetX - x) * .1f;

Because you are always setting and re-setting targetX to position.x - therefore you set the target to the actual position.
Just set targetX once to position.x and when “D” gets pressed do targetX = position.x + 10f .