when the del key is used it will generate cmd based on displayID