public void keyPressed(KeyEvent e) {
		int key = e.getKeyCode();
		switch(key) {
		case KeyEvent.VK_LEFT: case KeyEvent.VK_A:
			bleft = true;
			break;
		case KeyEvent.VK_RIGHT: case KeyEvent.VK_D:
			bright = true;
			break;
		case KeyEvent.VK_UP: case KeyEvent.VK_W:
			bup = true;
			break;
		case KeyEvent.VK_DOWN: case KeyEvent.VK_S:
			bdown = true;
			break;
		}
		locateDirection();
	}