I think you need something to give to focus to. How about creating a readonly editbox, without tabstop and it should also be hidden. You could then give it the focus.
If you are trying to mask special characters away from your control, there are better ways of doing this. Search for mask edit
], and you will find plenty of options.