To rename a block, double click on the block name or click on the pencil icon that appears when hovering the block with the cursor.