I have a simple menu that I have assigned keys to. Problem is if I want to change the keys I have to manually edit the buttons in a few instances.

So I want to use a variable for the "keypress" and assign them in the first frame so that any changes can be made once in this location.

Is it possible to use a variable like the following?

on (keyPress "variable") {

I've tried this but it may be my syntax is incorrect or it can't be done this way. I'm using AS2.0.