Okay I need more information than that. Do you want that character to move in two directions, do you want to make it move in four directions or do you want him to jump and fall while moving left and right?
And how do you want to control your character? With the mouse or keyboard? You are programming, you have to be specific.
I would gladly help you, but I need to know more :)
Also, do you have a gridded world (world with cells of size greater than one)? at what speed is your actor allowed to move? what obstacles could your actor encounter?
If you know how to make it move continuously in one direction; then try qualifying the movement by adding an 'if' condition to the movement statement. Once you have that, do the same for the other three directions, adjusting the condition for each direction.