engine: Take into account input from the numpad

These are numbers, and as such should be used to commit candidates,
exactly like the keys from the number row.

Fixes #49
tests: Ensure the numpad works
Merge pull request #51 from Cangjians/issue49

Fix usage of the numpad