Enter/Exit grab mode works, but sometimes bugs out