Handle the function keys