How do I make custom Input Touch events?

And if you created a button like I would match the command to fire? Can you help me?