How to switch frames??

How to make actor to switch frames on key down event? Actor Control>Add>Key Down>Right (Repeat Disable)>Script Editor and what next? I tried "frame++;" but nothing happens =/ Yah, I know that may be a noobish question, but please help me 
Sorry for my bad english

Sorry for my bad english