How can i split the text that key in by user, for example if the user key in "MoveForward To 123", how can i split the "MoveForward" to one field, "To" in to one field and 123 in to another field..

below is my simple print and scanf

char y;
printf("Please Enter Your Command:");
scanf("%s", &y);
Thank You