add another parameter( isByArrowKey) to differentiate if the focus is

add another parameter( isByArrowKey) to differentiate if the focus is made by arrow keys, 
nothing harm.