monitor_apply_keystate
void monitor_apply_keystate(struct ssh *, struct monitor *);
monitor_apply_keystate(ssh, pmonitor);