@Override
	public void keyPressed(KeyEvent event) {
		if (event.getKeyCode() == KeyEvent.VK_UP) {
			canvas.moveActive(canvas.getActiveX() - 1, canvas.getActiveY(),
					canvas.getActiveX(), canvas.getActiveY());
		}
		if (event.getKeyCode() == KeyEvent.VK_DOWN
				|| event.getKeyCode() == KeyEvent.VK_KP_DOWN) {
			canvas.moveActive(canvas.getActiveX() + 1, canvas.getActiveY(),
					canvas.getActiveX(), canvas.getActiveY());
		}
		if (event.getKeyCode() == KeyEvent.VK_LEFT
				|| event.getKeyCode() == KeyEvent.VK_KP_LEFT) {
			canvas.moveActive(canvas.getActiveX(), canvas.getActiveY() - 1,
					canvas.getActiveX(), canvas.getActiveY());
		}
		if (event.getKeyCode() == KeyEvent.VK_RIGHT
				|| event.getKeyCode() == KeyEvent.VK_KP_RIGHT) {
			canvas.moveActive(canvas.getActiveX(), canvas.getActiveY() + 1,
					canvas.getActiveX(), canvas.getActiveY());
		}
	}