0

I am doing a program with python 3 that should print "w pressed" when I press and release a key. I tried, and when I press the key it prints all the time without being released.

  • 2
    Please include the code snippets that you have tried in the question. – arshovon Apr 29 '21 at 14:13
  • 1
    Does this answer your question? [How to detect key release with python ( not keypress)?](https://stackoverflow.com/questions/45584937/how-to-detect-key-release-with-python-not-keypress) – nodesr Apr 29 '21 at 14:17
  • To detect the event of releasing a key likely requires very low level access to the operating system in question or the wrapping UI library, see e.g. [here](https://stackoverflow.com/q/27215326/1435475) for Tkinter. – guidot Apr 29 '21 at 14:17
  • Does this answer your question? [Detect key press in python?](https://stackoverflow.com/questions/24072790/detect-key-press-in-python) – tevemadar Apr 29 '21 at 14:17

0 Answers0