How can I set this up for Mobile users too?

I’m making a horse system
This is my code:

userInputService.InputBegan:connect(function(inputObject, gameProcessedEvent)
	if not gameProcessedEvent then
		if userInputService:GetFocusedTextBox() == nil then
		if inputObject.KeyCode == Enum.KeyCode.W or inputObject.KeyCode == Enum.KeyCode.Up then

How can I set it up for mobile users?
Do I have to use ContextActionService?
What keys do I bind if so?

You can check what type of user input is enabled to do different things for different input types.

 if game:GetService("UserInputService").TouchEnabled and not game:GetService("GuiService"):IsTenFootInterface() then

--Mobile Code here

end

Yes, but how would I detect if the Player, like the, roundy thing mobile users has, they move it forward like walking?
I’m making a horse system thts why