[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern short GetAsyncKeyState(int nVirtKey);
if (GetAsyncKeyState(40) < 0) //40为下箭头对应键asc码
{
}
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern short GetAsyncKeyState(int nVirtKey);
if (GetAsyncKeyState(40) < 0) //40为下箭头对应键asc码
{
}