For the multiplayer part, I'm using an extension called "Lacewing", it is extremely simple to use.
Once a player has done a keypress, it will send whatever you tell it to send to wherever you want, server, channel or peer, also if you want to send(TCP) or blast(UDP).
For example, when a player...