;
				}

			    // Handles cursor keys
			    var nudge = function(keyCode)
			    {
			    	if (!graph.isSelectionEmpty())
					{
			    		var dx = 0;
			    		var dy = 0;
			    		
			    		if (keyCode == 37)
						{
			    			dx = -1;
						}
			    		else if (keyCode == 38)
			    		{
			    			dy = -1;
			    		}
			    		else if (keyCode == 39)
			    		{
			    			dx = 1;
			    		}
			    		else if (keyCode == 40)
			    		{
			    			dy = 1;
			    		}
			    		
			    		graph.moveCells(graph.getSe