Move input-related commands into cmd_input. (dm)