I'm not a VB.NET programmer but in general programming terms I would think you need to do the following:
1. Detect a "key down" event
2. If the key pressed was space enter a while loop, if not continue
3. Execute whatever code you want in the while loop
4. Inside the while loop wait for a "key up" event
5. If the key released was space, exit the while loop, if not continue in the loop