Repository: vscode
Issue: Notebook keyboard shortcuts inconsistent
Labels: under-discussion,notebook-commands


Type: <b>Bug</b>

1. Create new Python notebook (ipynb) and open it in the VSCode editor
2. Add 1 cell with some pandas code that prints out a dataframe. That is, the last line in this cell should be just a variable. this will render the head and tail of the dataframe and display it as output of the cell. 
3. Create a new cell. 
4. Click on the output area of cell 1. This should highlight/select entie cell 1.
5. Now try using any keyboard shortcuts (A for adding a cell above, B for adding a cell below, DD for deleting a cell). These won't work. 

Ideally, keyboard shortcuts should work even if I have clicked the output of the cell to select it. They work fine if I click on the code cell itself, but it becomes frustrating when they just randomly stop working if I click on the output of any cell. 


VS Code version: Code 1.77.2 (e344f1f539a80912a0e9357cec841f36ce97a4e2, 2023-04-06T10:08:05.978Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: Yes

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Xeon(R) W-2245 CPU @ 3.90GHz (16 x 3912)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.59GB (16.49GB free)|
|Process Argv|D:\\Projects\\Sandbox --crash-reporter-id a7d073ac-507c-4ccf-bff2-1f2b393fb464|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (35)</summary>

Extension|Author (truncated)|Version
---|---|---
githistory|don|0.6.20
gitlens|eam|13.5.0
copilot|Git|1.82.15
copilot-labs|Git|0.12.791
todo-tree|Gru|0.0.226
google-search|kam|0.0.1
vscode-gist|ken|3.0.3
start-git-bash|McC|1.2.1
rainbow-csv|mec|3.7.0
data-workspace-vscode|ms-|0.4.0
mssql|ms-|1.18.0
sql-bindings-vscode|ms-|0.3.0
sql-database-projects-vscode|ms-|0.21.0
black-formatter|ms-|2023.2.0
isort|ms-|2022.8.0
python|ms-|2023.6.1
vscode-pylance|ms-|2023.4.20
jupyter|ms-|2023.3.1201040234
jupyter-keymap|ms-|1.1.0
jupyter-renderers|ms-|1.0.15
vscode-jupyter-cell-tags|ms-|0.1.8
vscode-jupyter-slideshow|ms-|0.1.5
remote-ssh|ms-|0.100.0
remote-ssh-edit|ms-|0.84.0
remote-explorer|ms-|0.4.0
sqltools|mtx|0.27.1
sqltools-driver-pg|mtx|0.5.1
sqltools-driver-sqlite|mtx|0.5.0
material-icon-theme|PKi|4.26.0
vscode-sql-beautify|sen|0.0.4
pdf|tom|1.2.2
win-ca|uko|3.5.0
intellicode-api-usage-examples|Vis|0.2.7
vscode-icons|vsc|12.3.0
vscode-todo-highlight|way|1.0.5

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vscaat:30438848
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
nodejswelcome1:30587005
2e4cg342:30602488
pyind779:30671433
89544117:30613380
vscrp:30673768
pythonsymbol12:30671437
a9j8j154:30646983
vsctsb:30705553
defaultazurewalk:30687958
pythonms35:30701012
pythonfmttextcf:30716743
pythonclientmv:30713943

```

</details>

<!-- generated by issue reporter -->