@Override
    public void keyPressed(KeyEvent e) {
	int key = e.getKeyCode();
	System.out.println(KeyEvent.getKeyText(key));
	if (key == KeyEvent.VK_LEFT)
	    scrollX -= tileSize / 4;
	else if (key == KeyEvent.VK_RIGHT)
	    scrollX += tileSize / 4;
	else if (key == KeyEvent.VK_UP)
	    scrollY -= tileSize / 4;
	else if (key == KeyEvent.VK_DOWN)
	    scrollY += tileSize / 4;
	else if (key == KeyEvent.VK_ESCAPE) {
	    Client.instance.setGuiScreen(new GuiPauseMenu());
	    firstClick = true;
	}
	if (scrollX < 0)
	    scrollX = 0;
	if (scrollY < 0)
	    scrollY = 0;
	int mapWidth = mapCache.length;
	int mapHeight = mapCache[0].length;
	if (scrollX > (int) (mapWidth * tileSize * zoom - width))
	    scrollX = (int) (mapWidth * tileSize * zoom - width);
	if (scrollY > (int) (mapHeight * tileSize * zoom - height))
	    scrollY = (int) (mapHeight * tileSize * zoom - height);
    }