How can I attach KeyPress Events which only works with spec


There is no way to attach some separate event, but you can use onKeyPress event and the default key reactions in the same time, just return true from your custom code

grid.attachEvent(“onKeyPress”,function(key){
    //any code here
    return true;
});

Not returning anything, or returning false will block default key processing.