add env.pyjs_mode with strict/optimized bool attributes
correct modifier keys keyevent detect
update display event to properly clear modifier keys held