Added on_key_change event method and fixed bugs in API server