Redefining function in order stop key intercept