checking on keycode and str stuff