Make variant selection menu toggleable by keyboard

Altered the script as the variant selection menu
uses a slightly different dom structure than the
other menus.

Bug: 46486
Change-Id: I4fdfe1cf002e4f5370b7073b509e33828db7dcbf
Merge "Make variant selection menu toggleable by keyboard"