echo whitespace and keycode case