Lock Input not behaving correctly