GetKeyState(VK_CAPITAL) & 0x00010x8000 是键有否按下0x0001 是键的翻转状态var bF1Down: Boolean;begin bF1Down := (GetKeyState(VK_SPACE) and $8000 > 0);