Player 1 (Teal): Press w to go up and press s to go down. Press d to shoot. Player 2 (Green): Press up arrow to go up and press down arrow to go down. Press left arrow to shoot. Both players have 10 lives.
Thanks to @hallac for the shooting mechanism and thanks Ravenstar100 for most of the code. The rest of it was me. Thanks for viewing!!!