fixing keycodes permiteds