added onKeyPress Event