why are onkeyup events not firing in javascript game
问题 I have the beginnings of a 2d javascript game - at the moment the player can drive a triangle around the screen using the arrow keys. The problem is that sometimes the triangle will get stuck rotating in one direction or moving forward until the corresponding control key is pressed again and the onkeyup event is fired again. This usually happens when more than one control key is pressed at the same time. I can't work out why it's getting stuck in the first place unless the onkeyup events aren