# \[Help\]Movement using the keyboard(How to flip)

**URL:** <https://forum.kirupa.com/t/help-movement-using-the-keyboard-how-to-flip/93934>\
**Category:** Uncategorized\
**Created:** [November 6, 2003, 2:48pm UTC](https://forum.kirupa.com/t/help-movement-using-the-keyboard-how-to-flip/93934 "2003-11-06T14:48:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MOre](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@MOre](https://forum.kirupa.com/u/MOre)\
**Post date:** [November 6, 2003, 2:48pm UTC](https://forum.kirupa.com/t/help-movement-using-the-keyboard-how-to-flip/93934/1 "2003-11-06T14:48:11Z")

</div>

Hi  
Im working on a game right now and have a problem: I want to move the “character” with the left and right keyboard buttons  
Here is the AS I found on the tutorial:  
[AS]on (keyPress “\<Left\>”) {  
currentX = this.\_x;  
this.\_x = currentX - 2;  
\_root.man.\_rotation = ;  
}  
on (keyPress “\<Right\>”) {  
currentX = this.\_x;  
this.\_x = currentX + 2;  
\_root.man.\_rotation = ;  
}[/AS]

The problem is i dont wanna rotate the pic. I just wanna flip it horizontaly whenever i press the left or right button. Is there a way to do that??

thank you verry much
