Input Manager "stuck"

We’ve seen reliable/repeatable issues with Input Manager detecting Axis input when Unity loses focus. It appears as though in 3.0 and 3.1 Unity may have a bug that causes key input to stick when focus is lost and it doesn’t clear when focus is regained. We even tried to clear it using Input.ResetAxis on regaining focus, but that doesn’t seem to clear it either. The bug is repeatable on both mac and PC clients. I’d package up a test case but my assets are WAY to big for upload. I’m just wondering if anyone else is having similar issues. We didn’t have this problem with 2.6.1.

Specifically we tried this,

void OnApplicationFocus (bool focus)
{
focused = focus;
}

and in Update ()

if (focused)
{
Input.ResetInputAxes();
focused = false;
directionVector = Vector3.zero;
}

which still detected axis input (on multiple machines with only keyboard plugged in) even when I was “hands off” on the keyboard.

Regarding the test case size, could you create a small project that reproduces the issue and submit a bug report with that attached instead?