I am new to windows programming. I want to know how to do the key_events in windows like vk_left ,vk_right,vk_up, vk_down . In which function do i write it etc.
Look up the WM_KEYDOWN message, which your Window Procedure receives when any of the extended keys are pressed. The documentation will tell you the meaning of the wParam and lParam parameters. So you'll likely have decision logic based on receiving the WM_KEYDOWN Windows message, then further logic to act on which notification, i.e., VK_UP, VK_DOWN, etc.