I need to to force Alt + Shift in Delphi to make my language of the application. I tried with keybd_event, calling it twice, but it didn't do the trick.
If you want to switch input language of your application, use the ActivateKeyboardLayout function for this.