As described in my previous message, I have a Swedish keyboard layout and am therefore setting the KEYBOARD_LAYOUT setting to en_US so that I can at least type some things with it.
An effect I notice, which I can't easily explain, is that if I run the test against a virtual display it works fine to type any text at all. Against a real display, it types the wrong characters if "Shift" is needed (whichever strategy is used).
Any suggestions why this might be? Does it leave open the possibility of a fourth "keyboard strategy" of doing deliberately whatever happens in my virtual display?