If this is for password entry, do you even WANT to display the characters that are entered? Better to handle it like MS Windows and display asterisks.

Just a thought,
... Steve.