I don't know how to capture the keyboard input once you had left you widget (im pretty sure xWidget dont support it). But if you will create a new Edit lets call it "editKey" and set the Visibility to false we can force it

to act as a fake key capture (Because i didn't found any outer way to capture keyboard input, correct me here if im wrong). Se define a new function
Code:
function widgetOnEnter()
{
editKey.SetFocus();
}
So each time the focus is set to the widget it immoderately activates the Edit box and from here just add to the "editKey" Edit a new function to capture keyboard events
Code:
function editKeyOnKeyDown(Sender,Key,KeyChar,Shift)
{
print("Key:" + Key);
print("KeyChar:" + KeyChar);
print("Shift:" + Shift);
}
The key value for F10 is "121".
But as we all know there is no documentation for xWidget so there is a possible way to maybe somehow capture the keyboard while the widget on the background or else...