Tried it out, still did not work, looks like the KeyUp and KeyDown procedures are not being detected, I did get it to somewhat work with the KeyPress procedure but I had to constantly set the keycode value back to 0 in the code section or it would constantly run that section of code.
Private Sub CtlDarkGDKViewport1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles CtlDarkGDKViewport1.KeyPress
If e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Left) Then
intKeyValue = 37
ElseIf e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Up) Then
intKeyValue = 38
ElseIf e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Right) Then
intKeyValue = 39
ElseIf e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Down) Then
intKeyValue = 40
End If
End Sub
'If IO.Keyboard.Up Then
If _fMain.intKeyValue = 38 Then
box.MoveUp(MSFrame) 'Move Object 1,MSFrame
intPlayerExp = intPlayerExp + 1
_fMain.intKeyValue = 0
End If
' If IO.Keyboard.Down Then
If _fMain.intKeyValue = 40 Then
box.MoveDown(-MSFrame)
intPlayerExp = intPlayerExp + 1
_fMain.intKeyValue = 0
End If
' If IO.Keyboard.Left Then
If _fMain.intKeyValue = 37 Then
dblAng = dblAng + TSFrame
intPlayerExp = intPlayerExp + 1
_fMain.intKeyValue = 0
End If
' If IO.Keyboard.Right Then
If _fMain.intKeyValue = 39 Then
dblAng = dblAng + TSFrame
intPlayerExp = intPlayerExp + 1
_fMain.intKeyValue = 0
End If
box.YRotate(dblAng)