Also, the constants VK_DOWN, VK_LEFT etc. are already defined in VB as vbKeyDown and vbKeyLeft so you don't need to add them.