Hi, and welcome.
That's one way, if you need keyboard emulation, but the most basic way is when you use action designer and search for a field by its attributes like id, calss, etc abd then use set value in field. This will be faster and more quality way to enter your variables in fields on page.