I think you will need to be aware of the Keyboard layout, I am not sure if there is some built-in function to specify the locale to the Robot class, but you can find an wrapper implementation for Robot class that support different keyboard layouts see this library