@Override
	public void keyPressed(KeyEvent arg0) {
		if(arg0.getKeyCode() == KeyEvent.VK_DELETE || arg0.getKeyCode() == KeyEvent.VK_BACK_SPACE) {
			level.setTile(selectedX, selectedY, null);
			this.repaint();
		}else if((arg0.getKeyCode() == KeyEvent.VK_C) 
				&& ((arg0.getModifiers() & KeyEvent.CTRL_MASK) != 0)) {
			this.copyX = selectedX;
			this.copyY = selectedY;
		}else if((arg0.getKeyCode() == KeyEvent.VK_V)
				&& ((arg0.getModifiers() & KeyEvent.CTRL_MASK) != 0)) {
			Tile t = level.getTile(copyX, copyY);
			if(t != null) {
				Tile nt = t.getCopy();
				nt.setX(selectedX);
				nt.setY(selectedY);
				level.setTile(selectedX, selectedY, nt);
				select(selectedX, selectedY);
			} else {
				level.setTile(selectedX, selectedY, null);
				select(selectedX, selectedY);
			}
		}
	}