Double-click the form... the go to the second drop-down list in the top and choose "KeyDown".