Resolves key event - key code conflict in keyboard input capture.