Refactoring cmdl & process-keyboard-input to use input-manager & cond.