Added function for looking up a nested-table.

  This is pretty specific to our keymap.

  This grossly simplifies the logic for the keyboard lookup.