Inserting keys for multiple cursors