6 ответов
+ 2
pycharm does not 'have' libraries, apart from the standard one. You have to pip install them from a repository.
+ 2
Code Playground for Python is not interactive, it won't read keys during runtime.
+ 1
I guess pycharm does not have keyboard library
+ 1
You can use "listen()"
It will tell to listen whick key is pressed and can call the function
0
Kuba Siekierzyński any method to do this in pycharm?
0
There's an excellent module named... keyboard, for just that :)