import pyxel def if_continue_button(): for k in [ pyxel.KEY_KP_ENTER, pyxel.KEY_RETURN, pyxel.KEY_SPACE ]: if pyxel.btnp(k): return True return False