You could be using the KeyUp event of the datagridview like this :
Private Sub dvJOBranch(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles dvJOBranch.KeyUp
If e.KeyCode = Keys.Up Then
' Do your code here
End If
End Sub
And if you want the enter key to be handled in there you could just use a select case also :
Private Sub dvJOBranch(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles dvJOBranch.KeyUp
Select Case e.KeyCode
Case Keys.Enter
' Code for enter
Case Keys.Up
' Code for up arrow
'Etc
End Select
End Sub