Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › Simulate escape key press using Python? › Reply To: Simulate escape key press using Python?
Bear in mind I haven’t actually tried this but found this which might work:
https://github.com/tuomasjjrasanen/python-uinput
One of the examples is generating keyboard clicks