you could use keystate() function which requires the scancode as a param
here's the scancodes
KEYSTATE
This command will return an integer value of one if the key specified by the scancode is pressed, otherwise
zero will be returned. The scancode value is the raw value assigned to the key of the keyboard device and
very often is ordered sequentially from the top left of the keyboard to the bottom right.
SYNTAX
Return Integer=KEYSTATE(Scancode)
Home of the VB.NET Class Builder Utility - Demo and FULL versions now available!!