How to Add key press in \' if(count<= 3)\' condition. in this code we have define that if the input length is less than 3 or equal to 3 consider the input as quantity and