You could run it as a async task, some similar questions here Keyboard input monitoring - #6 by cjdoris, How to Detect Key Down Events? - #2 by albheim
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Polling keyboard input looking for e.g. 'q' in a loop to 'gracefully' terminate execution | 2 | 1886 | December 9, 2016 | |
| Wait for a keypress | 12 | 10975 | November 15, 2025 | |
| How to interrupt (not kill) julia from the REPL (again)? | 6 | 874 | June 5, 2023 | |
| What to do when Julia runs away from you? (how to interrupt on C-c?) | 2 | 634 | August 4, 2022 | |
| How to interrupt (not kill) julia from the REPL? | 25 | 17359 | February 14, 2023 |