Keys on keyboard not working

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