Keyboard's Function Key(s) i.e. F2, F3.. etc. status may be read in using Input Device Control functions.
By assigning tab-page(s) in an array in correspondent to the function keys array (see example diagram), pressing the function key will switching the tab-control to the desire tab-page...
Attached for your reference.