キーの状態の配列を取得するためにGetKeyboardStateが使用されることを既にご存知だと思います。
keys(0) を渡すと、基本的に配列のメモリ位置が Win API 関数に提供されます。これにより、配列は参照によって関数に渡され、渡す配列にはデータが入力されます。
これは、リンクされたページからコピーされた使用例です。これは、コメントがたくさんあるという理由だけで提供しています。
' Display the key status of the Enter and Backspace keys
' Enter's virtual key code = 13; Backspace's virtual key code = 8
Dim keystat(0 To 255) As Byte ' receives key status information for all keys
Dim retval As Long ' return value of function
retval = GetKeyboardState(keystat(0)) ' In VB, the array is passed by referencing element #0.
' Display info about Enter
If (keystat(13) And &H01) = &H01 Then Debug.Print "Enter is being pressed."
If (keystat(13) And &H80) = &H80 Then Debug.Print "Enter is toggled."
' Display info about Backspace
If (keystat(8) And &H01) = &H01 Then Debug.Print "Backspace is being pressed."
If (keystat(8) And &H80) = &H80 Then Debug.Print "Backspace is toggled.