[NUI] Fix the return value of logicalKey (#1062)