Make sure when select an item to assign a shortcut, that the item is not only selected (where the line is bluish-gray), but the place where you type is selected. The field will turn a darker gray and show a blue highlight around the box.
If it is selected but not accepting changes, then you might try the recommendations addressing preferences from a similar post from the Animate Community: