z_getkeys.py

Created by cent20

Created on April 27, 2022

180 Bytes

Code associé à une touche From : https://workshop.numworks.com/python/andreanx/getkeys by Xavier Andréani


from ion import keydown

def getkey():
  for k in range(53):
    if keydown(k):
      return k
  return -1
  
k=-1
  
while k!=6:
  k=getkey()
  if k!=-1:print(k)