# Easing with arrow keys!

**URL:** <https://forum.kirupa.com/t/easing-with-arrow-keys/97698>\
**Category:** Uncategorized\
**Created:** [December 27, 2003, 10:35pm UTC](https://forum.kirupa.com/t/easing-with-arrow-keys/97698 "2003-12-27T22:35:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jerry](https://forum.kirupa.com/u/jerry)\
**Post date:** [December 27, 2003, 10:35pm UTC](https://forum.kirupa.com/t/easing-with-arrow-keys/97698/1 "2003-12-27T22:35:55Z")

</div>

Hey there…

I can’t seem to figure this out, I’m trying to make easing movement using the arrow keys…!?

Here’s what I’m working with:

[AS]  
speed = 20;  
MC.onEnterFrame = function() {  
if (Key.isDown(Key.UP)) {  
rotrad = MC.\_rotation/57;  
ymove = speed_Math.sin(rotrad);  
xmove = speed_Math.cos(rotrad);  
\_x += xmove;  
\_y += ymove;  
}[/AS]

Any help would be awesome 😃
