Since you're using 6, you won't have events, but try using the GetKeyboardState function from user32.dll inside a while loop which is inside the for loop. If you're only monitoring a specific key, you can use GetKeyState, which is simpler. Documentation for both can be found in the MSDN. If you don't want that, search google for LV Toolbox. I believe it has this as a VI.
___________________
Try to take over the world!