private void setKey(KeyEvent e)
	 {
		 boolean ctrl = false;
		 boolean alt = false;
		 if(e.isControlDown())
		 {
			 ctrl = true;
		 }
		 else if(e.isAltDown())
		 {
			 alt = true;
		 }
		
		 int a = e.getKeyCode();
		 String key = KeyEvent.getKeyText(a);
		 if(key.substring(0,1).equals("N"))
		 {
			 key = key.substring(7,key.length());
		 }
		 String text = "";
		 if(ctrl)
		 {
			text = "Ctrl-";
		 }
		 else if (alt)
		 {
			text = "Alt-";
		 }
		 if(key.equals("0"))
		 {
			 text += "10";
		 }
		 else
		 {
			text += key;
		 }
		 if(e.getExtendedKeyCode() == KeyEvent.VK_BACK_SPACE || e.getExtendedKeyCode() == KeyEvent.VK_DELETE)
		 {
			 text = "";
		 }
			((AbstractButton) guiFrame.getFocusOwner()).setText(text);
			guiFrame.getFocusOwner().setBackground(Color.WHITE);
			key1But.setEnabled(true);
    		key2But.setEnabled(true);
    		key3But.setEnabled(true);
    		key4But.setEnabled(true);
    		key5But.setEnabled(true);
    		key6But.setEnabled(true);
    		key7But.setEnabled(true);
    		key8But.setEnabled(true);
    		key9But.setEnabled(true);
    		key10But.setEnabled(true);
    		startBut.setEnabled(true);
	
		guiFrame.requestFocusInWindow();
	 }