Add utility to read keymap preference