I don't know what is it that I am getting wrong here. Maybe a concept or two.My code proceeds with the rest of the block inside the while loop even when I am trying to redirect my default case to the switch statement when the user inputs any key other than A,S,D or W. The code written is as follows :
while(<condition>)
{
    char ch;
    switch(ch=getch())
    {
        case 'W' : case 'w' :
            ..event
            break;
        case 'S' : case 's' :
            ..event
            break;
        case 'A' : case 'a' :
            ..event
            break;
        case 'D' : case 'd' :
            ..event
            break;
        default :
            continue;
    }
   ...actions here with the condition in while using
}