Bonjour,
Je pense que c'est une question difficile, on peut désactiver tout le clavier ainsi :
Private Declare Function BlockInput Lib "user32" (ByVal fBlock As Long) As Long
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Form_Activate()
DoEvents
'block the mouse and keyboard input
BlockInput True
'wait 10 seconds before unblocking it
Sleep 10000
'unblock the mouse and keyboard input
BlockInput False
End Sub
Pour ma part, je ne vois pas comment laisser le contrôle à une seule touche... pourquoi tu veux faire ça ?