Method and apparatus for securing touch input