When you say "can't get this working", what do you mean? Did you actually try to create some kind of command using keyboard emulation? If you did, please upload the XML and I'll let you know if I see any obvious mistakes.
Depending on your graphics software you might be able to use a more direct shortcut for each display, as opposed to using windows-p and then arrows, and then enter.