Here is the base of an application that goes fullscreen when the fullscreen button is tapped. You can add other keys roughly the same way. [...]
As for the other stuff, read the PyGTK tutorial.