getkeys() : get the list of pressed keys / getkey() : get a pressed key code (scanned from top to bottom)
from ion import keydown def keycodes(): lc = list(range(0,6)) + list(range(12,35)) for k in range(36,53): if (k+1)%6: lc.append(k) return lc def getkey(): for k in keycodes(): if keydown(k): return k return -1 def getkeys(): lk = [] for k in keycodes(): if keydown(k): lk.append(k) return lk