select (direction)
{
  case STEP_LEFT:
    ...
  break;

  case STEP_RIGHT:
    ...                                                                        /*  direction == STEP_RIGHT */
  break;

  case STEP_UP:
    ...
  break;

  case STEP_DOWN:
    ...
  break;
}
else
{
  ;
}