better solving of prevent default keys problem