added handling of keyp event