We encountered the case where the "Send Keys" Action does not send the correct keys to the login screen, but random characters instead.

In order to resolve the above, we can automate a virtual keyboard through the "UI/Windows" Actions in order to send the keys.

The Click-N-Type virtual keyboard is a free tool that you could use to achieve the above.