update keyboard comparison