Does anyone know how to capture the f-keys in a Textbox

I have tried the keypress event but the event does not fire when pressing any f-keys ie : F2