It seems that you want to call GetAsyncKeyState function from User32.dll.. Check
the below code, I think this may help you.
Public Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Int32) As UShort
Usage:
Public Shared ReadOnly Property KeyStatus(ByVal Key As Keys) As Boolean
Get
If Key = Keys.LButton AndAlso My.Computer.Mouse.ButtonsSwapped Then
Key = Keys.RButton
ElseIf Key = Keys.RButton AndAlso My.Computer.Mouse.ButtonsSwapped Then
Key = Keys.LButton
End If
Return API.Devices.GetAsyncKeyState(Key) And &H8000US
End Get
End Property
Above code provide the status of the key and mouse button.