@Override
	public void keyPressed(KeyEvent arg0) {
		int x = Main.f.tab.getSelectedRow();
		int y = Main.f.tab.getSelectedColumn();
		if (arg0.getKeyCode() == 38 && x != 0) x -= 1;
		if (arg0.getKeyCode() == 40 && x != 47) x += 1;
		if (arg0.getKeyCode() == 37 && y >= 1) y -= 1;
		if (arg0.getKeyCode() == 39 && y != 7) y += 1;
		Main.f.updateTP(x, y);
		Main.f.repaint();
	}