Making a frame play when key pressed

How Do you make a frame play by pressing a key in a keyboard?

1 Like

use this example
Button (5.5 KB)

1 Like

if (key === “if you want arrow keys then write left right down or up write any key here” ) {
gotoAndPlay().
}