Keys on keyboard not working

I am using ue5.4 my keys are not working. I tested with print string already and turned on input. The issue still was not fixed. Please help.

Where are the key events being called from? Can you post code?