You can also bind some key when player connects, to open the client command menu and execute some command.
Might be the best libcod-free way, and will work when played presses the key you want, instead of holding it.