check form on keydown