set up redirection

set up redirection to keyboardmode