VkKeyScan

[DllImport("user32.dll", SetLastError = true)]
public static extern short VkKeyScan(
   char ch
);

Microsoft documentation: Link

Last updated