make credit card type check detection happen on keyboard input.