Add move object

Anyone can help me.?

The action scenario that I want., if I press input action my pawn or capsule moves to green circle, and when I release it back to the red circle also with timeline transition

thank you for responding