...
var
Ip: TInput;
begin
ZeroMemory(@Ip, Sizeof(TInput));
Ip.Itype := INPUT_KEYBOARD;
Ip.ki.wVk := VK_LWIN;
Ip.ki.wScan := 0;
Ip.ki.dwFlags := KEYEVENTF_EXTENDEDKEY;
SendInput(1, Ip, SizeOf(TInput));
ip.ki.dwFlags := KEYEVENTF_KEYUP;
SendInput(1, Ip, SizeOf(TInput));
end;