It is not possible to link a command to a specific keyboard key. You can only link it to a command that is send to the server. The proper solution is for each player to set up their own bind if they want to use a key to open the menu instead of forcing it be used when a player is trying to use another command like "chooseteam".
well I been playing with server that if you press M it opens the /menu