A study on characteristics of keystroke dynamics and application to person authentication