Esc keybind not working

My esc keybind is not working but if I click the ? in the tab, then the esc keybind starts to work.

I have checked my hardware to make sure the keyboard was working by swapping it out. Still the same issue.