Add key_up() and key_down() methods in GameIO. key_press() does the aforementioned two functions one after the other.
Moved module to a different file and created a main script.