@Override
	public void nativeKeyReleased(NativeKeyEvent arg0) {
		// TODO Auto-generated method stub

		if (lastkey==arg0.getKeyCode()){
			ignore=false;
		} else {

		}
		
		
		//ctrl+v (when keeping ctrl pressed nothing gets typed)
		if (arg0.getKeyCode()==KeyEvent.VK_CONTROL && this.readyToType){

				try {
					String data = (String) Toolkit.getDefaultToolkit().getSystemClipboard().getData(DataFlavor.stringFlavor);
					this.mainFrame.getRoboTask().add(data);
				} catch (HeadlessException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				} catch (UnsupportedFlavorException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				} 
			this.readyToType=false;
			
		} else if(arg0.getKeyCode()==KeyEvent.VK_CONTROL && this.joinFC){
			
			FcJoin fcjoiner = new FcJoin(mainFrame);
			fcjoiner.start();
			this.joinFC = false;
		}
		
		else if (arg0.getKeyCode() == KeyEvent.VK_ALT_GRAPH){
			this.mainFrame.getRobot().keyPress(KeyEvent.VK_CONTROL);
			this.mainFrame.getRobot().delay(10);
			this.mainFrame.getRobot().waitForIdle();
			this.mainFrame.getRobot().keyRelease(KeyEvent.VK_CONTROL);
			this.altgrpressed=false;
		}
	}