fixed string comprassion
added keypress