replaced raw key codes with GDK's definitions.