added mroot and msqrt keyboard navigation code