public void keyPressed(KeyEvent evt) {
            Component ct = KeyboardFocusManager.getCurrentKeyboardFocusManager().getPermanentFocusOwner();
            int keyKode = evt.getKeyCode();
            switch(keyKode){
               case KeyEvent.VK_ENTER : {
                    if(!(ct instanceof JTable))                    {
                            Component c = findNextFocus();
                            if (c==null) return;
                            c.requestFocus();
                    }
                    break;
                }
                case KeyEvent.VK_DOWN: {
                    if(!(ct instanceof JTable))
                        {
                                Component c = findNextFocus();
                                if (c==null) return;
                                c.requestFocus();
                            break;
                    }
                }

                case KeyEvent.VK_UP: {
                    if(!(evt.getSource() instanceof JTable)){
                        Component c = findPrevFocus();
                        c.requestFocus();
                    }
                    break;
                }
//                case KeyEvent.VK_F4:{
//                    udfClear();
//                    break;
//                }
//                case KeyEvent.VK_F5:{
//                    udfSave();
//                    
//                    break;
//                }
                case KeyEvent.VK_ESCAPE:{
                    dispose();
                    break;
                }
                
            }
        }