Marv did help you.
You move left by for example setting your x position to x-2 and x+2 for moving right.
What triggers that action is up to you.

For example:
-Mouse is over activeA
-Repeat...