Implement move[Up|Down]() with common moveVertically() function.