This third example displays an alert only when the pressed key should not be allowed in the textbox.