Evaluate Float Curve on Button Click

Hello,

i have a float curve that is 1 sec. long and id like to evaluate it on button click by Time .
For example every time I press the button “p” the values of the float curve should appear (print string).

Use timeline on input event.