basic keycode input