furthermore for key pressing youll have to do this

on (keyPress "q") {
_root.fig._x += 10;
}
on (keyPress "w") {
_root.fig._x += 10;
}
on (keyPress "e") {
_root.fig._x += 10;
}
on (keyPress "r") {
_root.fig._x += 10;
}
on (keyPress "t") {
_root.fig._x += 10;
}
on (keyPress "y") {
_root.fig._x += 10;
}

and keep copying and pasting the code and replacing it with all the button on the keyboard unless someone knows a code to include all butons in one