keycode detector