' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Imports System
Imports System.Threading
Imports System.Runtime.InteropServices

Module Program
    Declare Function GetAsyncKeyState Lib "User32.dll" (ByVal vkey As Long) As Integer
    Sub Main()
        Thread.Sleep(1000)
        Console.WriteLine(GetAsyncKeyState(65))
        Thread.Sleep(10000)
    End Sub
End Module
