tree: Handle delete-key press event

Signed-off-by: Michael Buesch <m@bues.ch>