how to move corcer position with keyboard

#include<stdio.h>
#include<windows.h>
#define WIN32_LEAN_AND_MEAN
#define WIN32_EXTRA_LEAN
void move();
int main()
{
    move();
getch();
return 0;
}
void move()
{
     POINT p;
     GetCursorPos(&p);
     char c;
     c=getch();
     if(c=='M')
     p.x+=1;
     if(c=='K')
     p.x-=1;
     if(c=='H')
     p.y+=1;
     if(c=='P')
     p.y-=1;
     SetCursorPos(p.x,p.y);
     }