if not isDown and key == KEY_LEFTMOUSE:
			self.dragging = 0

		if isDown:
			if key == KEY_LEFTMOUSE:
				self.leftMouseDown = 1
				self.onLeftMouse()
				handled = 1
			if key == KEY_MIDDLEMOUSE:
				self.onMiddleMouse()
				handled = 1
			#elif key == KEY_RETURN:
			#	self.addChunkItem()
			elif key == KEY_DELETE:
				if self.selection.size:
					WorldEditor.deleteChunkItems( self.selection )
			elif key == KEY_ESCAPE:
				# clear the selection
				set_clear( self.selection )
				self.selUpdate()
			#elif key == KEY_R and self.objInfo.shellMode and self.selection.size:
			elif key == KEY_R and self.selection.size:
				WorldEditor.recreateChunks( self.selection )
				WorldEditor.addCommentaryMsg( "Recreated chunks" )

				# clear the selection
				set_clear( self.selection )
				self.selUpdate()
#			elif key == KEY_T:
#				WorldEditor.recalcTerrainShadows()
#				WorldEditor.addCommentaryMsg( "Recalced shadows" )