getKeyState(Ver2.11対応版)
IndexScriptGlobal method− getKeyState

getKeyState( num1, num2 )
Gets the keyboard status.
パラメータ1(数値型)
Specify a virtual key code. (Example: 0x10 for VK_SHIFT / 0x11 for VK_CONTROL / 0x04 for VK_MBUTTON)

パラメータ2(数値型)
When 0 it is the same as GetKeyState of Win32 API.
When 1, you can get the state of the middle button when you press a button such as the link bar.
When 2, it is the same as GetAsyncKeyState of Win32 API.

返り値(数値型)
The return value is whether the 0x8000 bit is pressed or not. A bit of 0x0001 represents the toggle state of the key.