Change cursor to adhere to a list of commands