Native support for Keysym and Keycode.
Adapted Lesson04 to the changes in keyboard event handling.