fixes to event handling, added accessibility mode logic