public static void act(KeyEvent e) {
        for(Player p: players) {
            if (!p.isBot()) {
                if (e.getKeyChar() == ' ')
                    p.setAction(8);
                else if (!e.isActionKey())
                    p.setAction(e.getKeyChar());
                else
                    p.setAction(e.getKeyCode());
            }
        }
    }