Added awareness of key presses to tab module