when i enter the code in List1.Keypress

if keyascii = 68 then list1.removeitem (list1.listindex);

if the user hits D then the selected item is removed.
when I do it with delete, however:

if keyascii = 46 then list1.removeitem (list1.listindex)

when they press DELETE nothing happens! What is the code>?