bug fix to make it so dragging off a key with the mouse still works correctly