We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I would like to know how do I move an object by keyPressed and set the object to move to a specific speed and stop at a position and being able to move back slowly to its position.
Have a look at this chapter from The Nature of Code:
It will get you started building a simple "mover" class.
Try to implement something and come back here if you get stuck.