How can I play a widget's animation through a key press?

Hello, thank you for your reply!
But I cannot add the variable to the play animation node, it won’t let me