update keyboard type