VB Code:
  1. Private Sub Combo1_KeyDown(KeyCode As Integer, Shift As Integer)
  2.     If KeyCode = 13 Then
  3.         'whatever code you want
  4.     End If
  5. End Sub

is that what you mean? that will execute only if the program has focus and the combo box has focus.