Hi,
my Micropython Modul ist ready to use: http://micropython.aundz.net/index.php?title=M5CardComputer_Keyboard#Ein_Modul_zur_Keyboardabfrage
It is to use with Micropython (Thonny) not with UIFlow!
M5Stack uses 2 spaces for indentation, I used 4 spaces as it is standard in Micropython.