added functionality so that when playing pvp the second player also can use the keyboard