Key codes differs with mobile phones. If you want to be sure of the input you should test it on every phone model that you use, or just use J2ME standard input classes for the text input (depends what kind of application you create).
-------
Javatech
Mobile Applications