key events: Apply modified keypressrelease patch

Modifications:

- keypressrelease -> keyevent
- Indentation of struct entry fixed
- No patching of config