how to capture the key pressed

hi, this is solved… i am posting the solution if any body else needs it.

override the testChange method like this

here is it public void textChange()
{
super();
this.text(strkeep(this.text(), “0123456789”));
}