original_docstring: 
  		sets target based on keypress, and calls moveTo which takes further decision/action.
  		
docstring: sets target based on keypress, and calls moveTo which takes further decision/action.
docstring_tokens: sets target based on keypress and calls moveTo which takes further decision / action .
code: def handleKeyPress(self):
  		'''
  		sets target based on keypress, and calls moveTo which takes further decision/action.
  		'''
  		currCol=self.x/50
  		currRow=self.y/50
  		horizontal=1
  		
  		if event.key==pygame.K_LEFT:
  			targetCol=currCol-1
  			targetRow=currRow
  			offset=-50
  			return self.moveTo(targetRow,targetCol,currRow,currCol,offset,horizontal)
  				
  		elif event.key==pygame.K_RIGHT:
  			targetCol=currCol+1
  			targetRow=currRow
  			offset=50
  			return self.moveTo(targetRow,targetCol,currRow,currCol,offset,horizontal)
  			
  		elif event.key==pygame.K_UP:
  			horizontal=0
  			targetCol=currCol
  			targetRow=currRow-1
  			offset=-50
  			return self.moveTo(targetRow,targetCol,currRow,currCol,offset,horizontal)
  			
  		elif event.key==pygame.K_DOWN:
  			horizontal=0
  			targetCol=currCol
  			targetRow=currRow+1
  			offset=50
  			return self.moveTo(targetRow,targetCol,currRow,currCol,offset,horizontal)
code_tokens: def handleKeyPress ( self ) : currCol = self . x / 50 currRow = self . y / 50 horizontal = 1 if event . key == pygame . K_LEFT : targetCol = currCol - 1 targetRow = currRow offset = - 50 return self . moveTo ( targetRow , targetCol , currRow , currCol , offset , horizontal ) elif event . key == pygame . K_RIGHT : targetCol = currCol + 1 targetRow = currRow offset = 50 return self . moveTo ( targetRow , targetCol , currRow , currCol , offset , horizontal ) elif event . key == pygame . K_UP : horizontal = 0 targetCol = currCol targetRow = currRow - 1 offset = - 50 return self . moveTo ( targetRow , targetCol , currRow , currCol , offset , horizontal ) elif event . key == pygame . K_DOWN : horizontal = 0 targetCol = currCol targetRow = currRow + 1 offset = 50 return self . moveTo ( targetRow , targetCol , currRow , currCol , offset , horizontal )
short_docstring: sets target based on keypress, and calls moveTo which takes further decision/action.
short_docstring_tokens: sets target based on keypress and calls moveTo which takes further decision / action .
comment: '''
  		sets target based on keypress, and calls moveTo which takes further decision/action.
  		'''