a mas tu fci deklarovanou?

Kód:
Private Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer