Added functionality for delete key