Make sure to delete context menu when done. Remove unnecessary keyPressTime write.