Private Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer
Private Sub Timer1_Timer()
If GetKeyState(vbKeyRight) < 0 And GetKeyState(vbKeyShift) >= 0 Then
LDerecha.Caption = "si"
Else
LDerecha.Caption = "no"
End If
If GetKeyState(vbKeyUp) < 0 Then
LArriba.Caption = "si"
Else
LArriba.Caption = "no"
End If
If GetKeyState(vbKeyDown) < 0 Then
LAbajo.Caption = "si"
Else
LAbajo.Caption = "no"
End If
If GetKeyState(vbKeyLeft) < 0 And GetKeyState(vbKeyShift) >= 0 Then
LIzquierda.Caption = "si"
Else
LIzquierda.Caption = "no"
End If
End Sub