initialize device type
adjust keyboard pos