replaced action for 'delete key' event