Fixed error when trying to display keymappings.

Fixed error when trying to display keymappings.