Issues with moving left and right

I have two students who cannot move their sprites left and right. The code looks correct, would love another set of eyes!

[Game Lab -]

[Game Lab -]

I am sure it is something very easy that I am just not seeing. Thanks!

The first one appears to be working … the polar bear responds to the arrow keys.

The 2nd one, the player control function needs to be called from inside the draw loop rather than outside the loop. As is, it is getting called exactly one time.

Good luck!