I recently developed a virtual keyboard application for a customer. The program is working fine with almost all programs, but certain commands like {ENTER} or <
{ENTER}
Try using Windows Input Simulator. Not sure if it supports Citrix but it is much more powerfull compared to SendKeys.