move forward or backward in current direction