The window has a method called button_down(id) and button_up(id) I believe. You can check what key is being pressed according to the id being passed.
To find out the id of the key pressed, just print id. That way you'll find out the key code for the semicolon, and then in the future you can check if the semicolon is being pressed or not.
Note that, it seems that between Windows and Mac, the key codes are different.
By jlnr (dev)
Date 2012-07-05 06:15
There is no semicolon key on German keyboards, that's why it's missing. I think it is either of ÄÖÜ here. I should add it though, in the spirit of the KbZ id (that is a 'Y' on German keyboards). Patches welcome. :)