Problem w/ Capslock state for NT
When using the following code, I do not always get the correct state of the Capslock key w/Windows NT.

Private Declare Function GetKeyboardState Lib "user32" _
(pbKeyState As Byte) As Long

Dim KeyState As Boolean
Dim keys(0 To 255) As Byte
GetKeyboardState keys(0)

KeyState = keys(VK_Type)

I'm trying to always turn off the capslock before using the keybd event and I need to check the status before toggling it.
Does anyone have a suggestion?