[show-hint addon] Clean up code that handles custom keymap

Issue #1440