
        document.getElementById('btn-add-cell').addEventListener('click', addCell);
        document.getElementById('theme-toggle').addEventListener('click', toggleTheme);
        
        // Global keyboard shortcuts
        document.addEventListener('keydown', (e) => {
            if (cellMode === 'command') {
                switch(e.key) {
                    case 'Enter':
                        e.preventDefault();
                        editMode();
                        break;
                    