@Override
	public void keyPressed(KeyEvent e) {
		
		AppliWindow window = AppliWindow.getInstance();
		
		switch (e.getKeyChar()) {
		case 'p':
			
			// Retour au jeu
			if(window.isPauseStatus()) {
				window.hidePause();
				window.showGame();
				Game.getInstance().setRunning(true);
				Game.getInstance().start();
				
			}
			// Mise en pause
			else {
				window.showPause();
				window.hideGame();
				Game.getInstance().setRunning(false);
			}	
			break;
			
		case 'q':
			if(window.isPauseStatus())
				System.exit(0);
		default:
			
			// any other key, let the Focus to the Panel
			window.giveFocusToPanel();
			break;
		}
		
	}