Issue #3427: modify keyboard register codes with new event manager

Modify keyboard register codes with new event manager