Keyboard input - can't assign special keys

I’m trying to use my keyboard for input, works fine with normal keys (a,b,c), but numerical, lshift, enter, and so on does not work.

Works:

input_player1_select = a

Doesn’t work:

input_player1_select = 1

What am I doing wrong?