Before I upgrade to macOS Sierra, my custom input source works fine, I can choose the word from the list by using the numbers. However, after i upgraded to OS X Mavericks, the custom input can only use arrows to choose the specified wordings.
iMac with Retina 5K display, macOS Sierra (10.12)