キーボードの状態を取得する(WindowsAPI)

以下2つの関数を利用する方法がある。
・GetAsyncKeyState
・GetKeyboardState


ネタ元