Heres just some simple code as a base for a fighting game. A key and D key for P1 Left Arrow key and Right Arrow key for P2
You can use it if you'd like for your own fighting game!