ui: use correct union field for key number