improves mouse and keyboard element capture selection