game input code