unit – How to recover the coordinates of an animated object?

On Unity, I created a script in C # to animate a cube.
I'm trying to create a script in C # that once the animated object and in support of a keyboard key (eg F) returns me the coordinates of the object at the moment where I pressed F

Can you give me this script?

Thank you for your help