Hi @cuteufo, welcome to the Streamlit community
At this time it is not possible to capture specific keypress events other than ENTER on the text_input
.
I do think it’s a good usecase for the upcoming Custom Components, which should be out soon, and will enable you to write your own JS/HTML rendered in Streamlit apps. When that comes out you should be able to overwrite this behavior and catch your own keypress events !
Fanilo