How do I use send keys? There’s no good guides

I want the script to hit tab and then enter, tab and then enter.

So 2 times in a row, I tried $(KEY_TAB) in value and nothing happened

The Sendkeys command does not work well because it was suitable for old sites in plain language (simple html, php) but today many sites cannot be automated with Sendkeys, use Xtype instead of SendKeys

Info about Xtype (need xmodules installed)

I got it to work with xtype