You need to check if the user is still near the crate after entering the input.