In one of field on contact my requirements are to allow the user to enter only digits and if any other key such as alphabetic or special symbol key is pressed it should alert about the invalid key. I tried with this but I cannot find the way to pass pressed key as parameter.
Any idea to achieve this.