Support for PressedX/PressedY events, fix issues with form switching on connect