For Each COntrol as COntrol In Me.Controls
AddHandler Control.KeyDown, AddressOf ControlKeyDown
Next
Private Sub ControlKeyDown (ByVal sender as Object, ByVal e as System.Windows.Forms.KeyEventArgs)
If e.KeyValue = 113 Then
<Code Here>
End If
If e.KeyData = Keys.F2 Then
MsgBox("F2 was pressed")
End If