When the TAB character is typed, the script contains "Send {<tab character>}". The workaround is to edit the script and replace the "<tab character>" by "TAB", to have Send {TAB}.
When the TAB character is typed, the script contains "Send {}".
The workaround is to edit the script and replace the "" by "TAB", to have Send {TAB}.