public static short GetKeyState(WM nVirtKey) { int k = (int)nVirtKey; return (short)DllImportCaller.lib.IntCall("coredll", "GetKeyState", k); }