modify contraction mode of keyboard