I'm not sure whether it's related but you almost certainly shouldn't be calling Focus or handling GotFocus. If you read the relevant documentation you'll see that an application developer should generally be calling Select and handling Enter.