lock keyboard after keydown