change value on key down