Fixed a few bugs regarding pointer and keyboard grabbing