How to add actions to keyboard?

Hello I´ve been looking around the net, and found a lot of confusing information.
I would like to know how to add simple actions like gotoAndPlay(“next”); to a key.
e.g. the right arrow.

How could I do this? any simple way?

thanks in advance, marcelo.