This function is called whenever a canvas in the frame recieves the keyboard focus.
When a frame group is used, this frame becomes the active frame for the group.