On Windows, run PasswordReader example without the mask parameter (it will use NULL_MASK).
Bug#1: Type the following keys: SPACE, LEFT, RIGHT. The cursor will move one character left.
Bug#2: Type the following keys: SPACE x N times, ESCAPE. The cursor will move N characters left.
Proposed patch