Add key inputs so only approved characters can be typed.