A control (or program) is said to have focus when it is the control which is receiving input from the keyboard.