Or, if you use MVC architecture in your application you can add this code to your controller



init: function() {

this.control({
'textfield': {
specialkey: function(field,...