if its for a form:

set the KeyPreview to true

then stick it in the KeyPress event