I looked into it and the controls seem to be functioning fine no matter how many times I run it both on itch.io and in my source code. If you could give me a little more detail, maybe that will help me find the issue.
the 2nd play was weird for me too but seemed to have sorted itself out on subsequent plays?
thought it was just me so didnt mention it :) regardless, fun game!