Calibration of the keys