Make on_unknown_key to return [code, string, cursor]