@Override
	public void keyPressed(final KeyEvent keyEvent)
	{
		if (this.clavierDisponible) {
			// blocage du clavier afin de le rendre inactif.
			this.clavierDisponible = false;

			final int code = keyEvent.getKeyCode();

			if (code >= KeyEvent.VK_LEFT && code <= KeyEvent.VK_DOWN) {
				int dx = 0;
				int dy = 0;

				switch (code) {
				case KeyEvent.VK_LEFT: // 37
					dx = -1;
					dy = 0;
					break;
				case KeyEvent.VK_UP: // 38
					dx = 0;
					dy = -1;
					break;
				case KeyEvent.VK_RIGHT: // 39
					dx = 1;
					dy = 0;
					break;
				case KeyEvent.VK_DOWN: // 40
					dx = 0;
					dy = 1;
					break;
				default:
					break;
				}

				this.controleur.demandeDeplacementPirate(dx, dy);
			}

		}
	}