Apply the value of a selected cell to all rows under the same column using streamlit-aggrid

I’m using AgGrid in Streamlit with a column set up as a dropdown using agSelectCellEditor.

I want to be able to select a cell under that column, press a keyboard shortcut and apply that value to all cells in the other rows under the same column. (above or below the selected cell)

What’s the best way to handle this since streamlit doesn’t natively handle keyboard events well?