add the updateGhostPiece when the keyboard click