If Typeof e.Sender Is WinForm.TextBox Then
Dim Index As Integer = CInt(e.Sender.Name.Replace("TextBox",""))
Select Case e.KeyCode
Case keys.Down
e.Cancel = True
If Index <> 3 AndAlso Index <> 6 Then e.Form.Controls("TextBox" & (Index+1)).Select
Case keys.Left
e.Cancel = True
If Index > 3 Then e.Form.Controls("TextBox" & (Index-3)).Select
Case keys.Right
e.Cancel = True
If Index <= 3 Then e.Form.Controls("TextBox" & (Index+3)).Select
Case keys.Up
e.Cancel = True
If Index <> 1 AndAlso Index <> 4 Then e.Form.Controls("TextBox" & (Index-1)).Select
End Select
End If