Revert "COMMON: Fix crash when the keymapper and the event recorder are enabled"

This reverts commit 93987d999c61221bda3da548c8c81f5d6d906a12.