I am using this code to test whether a key has been pressed, but I also need a binding that is called when a key is released. If no such binding exists, I would settle for a bit of code that continuously checks if the key is still being pressed.
w.bind("<Key>",key)
This will call
onkeyrelease
when any key is released:To react to a particular key's release, you would use
where
key
should be replaced by the name of the key.