Fix accesskeys

Make accesskeys for tabs work again.  Fix #1002