added key codes and embedded them in the player class so they can be sent over the network and easily interpreted