Get the key code of an event.
Referenced by ScimBridgeClientIMContextImpl::filterEvent(), and scim_bridge_key_event_bridge_to_qt().