as2 to as3 Migration help...easy question!

Hey guys, first of I would like to apologize if this question has been already answered

I need help translating this follow AS2 code:

onClipEvent(enterFrame){
   if(Key.isDown(Key.LEFT)){
      _x -= 5;
   }else if(Key.isDown(Key.RIGHT)){
      _x += 5;
}

I’ve been having a lot of trouble understanding AS3 and I would be eternally grateful for help :smiley:
Thanks!