The problem is that you used a button, which doesn't have the input focus for very long. Handle the KeyDown event of the Form.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008