var speedDecrement = 0; ... if (Key.isDown(Key.RIGHT)) { _root.reed._x += speed + speedDecrement ; speedDecrement += 0.1; }