That was the exact aceleration what I wanted. Thank you.

I have another question. I want to stop the entity when it is on his way up (with the key "s") at every height you may choose.

I thought it was easy with:
Code:
height = height;


But that didn't work.

Thanks in advance.