How to Move the Cursor Up or Down Using Neovim's Lua API

There are two ways to move the cursor up or down using Neovim's Lua API: