src/main/java/tsz/game/controller/GameController.java
/**
	 * Stop the player's car moving.
	 * @see tsz.game.view.ActionOnKeyEvents#stopMoving()
	 */
Stop the player's car moving.
Stop the player ' s car moving .
@Override
	public EventHandler<? super KeyEvent> stopMoving(){
		return keyEvent -> {
			switch (keyEvent.getCode()) {
			case LEFT: 
				this.movingLeft.stop(); 
				return;
			case RIGHT: 
				this.movingRight.stop(); 
				return;
			case UP: 
				this.movingUp.stop(); 
				return;
			case DOWN: 
				this.movingDown.stop(); 
				return;
			default : 
				return;
			}
		};
	}
@ Override public EventHandler < ? super KeyEvent > stopMoving ( ) { return keyEvent -> { switch ( keyEvent . getCode ( ) ) { case LEFT : this . movingLeft . stop ( ) ; return ; case RIGHT : this . movingRight . stop ( ) ; return ; case UP : this . movingUp . stop ( ) ; return ; case DOWN : this . movingDown . stop ( ) ; return ; default : return ; } } ; }
Stop the player's car moving.
Stop the player ' s car moving .