keydown events

Hi All,

Has anyone implemented the key down functionality. I have a table view and it would be great to allow users to delete rows with the delete key. But I need to detect the delete key. The old way in ASS was

on keyboard down theObject event theEvent
	try
		if key code of theEvent is 51 then
			--delete selected rows of table code
		end if
	end try
end keyboard down

But now I am looking at the Docs on key events and a bit baffled.

I simply tried this with no luck of course.

on keyDown_(theEvent)
		log "event happened"  -- no log yet
		--how do we get the 'delete' key so we can respond?
end keyDown_

Thanks, Rob

Assuming you also have a button they can push to delete a row, just give the button a keyboard equivalent.